Create a spring having 10, 25 and 50 as its minimum, preferred, and maximum value respectively. - Java Swing

Java examples for Swing:SpringLayout

Description

Create a spring having 10, 25 and 50 as its minimum, preferred, and maximum value respectively.

Demo Code

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
}

Related Tutorials