Source Code : Separator Sample
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Separator Sample

import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JFrame;
import javax.swing.JSeparator;
public class SeparatorSample {
public static void main(String args[]) {
JFrame frame = new JFrame("Separator Example");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JSeparator north = new JSeparator(JSeparator.HORIZONTAL);
JSeparator south = new JSeparator(JSeparator.VERTICAL);
JSeparator east = new JSeparator(JSeparator.HORIZONTAL);
JSeparator west = new JSeparator(JSeparator.VERTICAL);
Container contentPane = frame.getContentPane();
contentPane.add(north, BorderLayout.NORTH);
contentPane.add(south, BorderLayout.SOUTH);
contentPane.add(east, BorderLayout.EAST);
contentPane.add(west, BorderLayout.WEST);
frame.setSize(350, 250);
frame.setVisible(true);
}
}
Thank with us