Java examples for Swing:SpringLayout
Create a spring from the width of a component named c1
import javax.swing.JButton; import javax.swing.Spring; public class Main { public static void main(String[] args) { JButton c1 = new JButton(); Spring s1 = Spring.width(c1); }//w w w . jav a 2 s.c om }