Source Code : FormLayout: Basic Example 1
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
FormLayout: Basic Example 1

/*
Code revised from Desktop Java Live:
http://www.sourcebeat.com/downloads/
*/
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
import javax.swing.*;
public class FormLayoutExample1 extends JPanel {
public FormLayoutExample1() {
FormLayout formLayout = new FormLayout("pref", "pref, pref");
setLayout(formLayout);
CellConstraints c = new CellConstraints();
add(new JLabel("Component 1"), c.xy(1, 1));
add(new JLabel("Component 2"), c.xy(1, 2));
}
public static void main(String[] a){
JFrame f = new JFrame("FormLayout: Basic Example 1");
f.setDefaultCloseOperation(2);
f.add(new FormLayoutExample1());
f.pack();
f.setVisible(true);
}
}
Thank with us