Create a strut of 10 pixels for SpringLayout - Java Swing

Java examples for Swing:SpringLayout

Description

Create a strut of 10 pixels for SpringLayout

Demo Code

import javax.swing.Spring;

public class Main {
  public static void main(String[] args) {
    Spring strutPadding = Spring.constant(10);
  }//from ww w .  jav  a  2 s. co  m
}

Related Tutorials