Java examples for Swing:SpringLayout
Create a spring from the height 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 s2 = Spring.height(c1); }// w w w .j av a 2 s .c o m }