Create a spring from the height of a component named c1 - Java Swing

Java examples for Swing:SpringLayout

Description

Create a spring from the height of a component named c1

Demo Code

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
}

Related Tutorials