Example usage for javax.swing Box createVerticalBox

List of usage examples for javax.swing Box createVerticalBox

Introduction

In this page you can find the example usage for javax.swing Box createVerticalBox.

Prototype

public static Box createVerticalBox() 

Source Link

Document

Creates a Box that displays its components from top to bottom.

Usage

From source file:visolate.Visolate.java

private Box getGCodeOptionsBox() {
    if (myGCodeOptionsBox == null) {
        myGCodeOptionsBox = Box.createVerticalBox();
        myGCodeOptionsBox.setBorder(BorderFactory.createTitledBorder("G-Code"));
        JPanel panel = new JPanel();
        panel.setLayout(new GridLayout(3, 4));

        panel.add(new JLabel("Coordinates"));
        panel.add(new JLabel("Z-coordinates"));
        panel.add(new JLabel("left upper coordinates"));
        panel.add(new JLabel("Metric"));
        panel.add(new JLabel("Feedrates"));

        panel.add(getRelativeCoordinatesButton());
        panel.add(getZCuttingHeightPanel());
        panel.add(getInitialXPanel());/*from ww  w.  j a v a  2 s  .c o m*/
        panel.add(getMetricButton());
        panel.add(getMillingSpeedPanel());

        panel.add(getAbsoluteCoordinatesButton());
        panel.add(getZDownMovementPanel());
        panel.add(getInitialYPanel());
        panel.add(getImperialButton());
        panel.add(getPlungeSpeedPanel());

        myGCodeOptionsBox.add(panel);
    }
    return myGCodeOptionsBox;
}