Java examples for Swing:SpringLayout
Create a spring having 10, 25 and 50 as its minimum, preferred, and maximum value respectively.
import javax.swing.Spring; public class Main { public static void main(String[] args) { Spring springPadding = Spring.constant(10, 25, 50); }//from ww w .j a v a 2 s . co m }