List of usage examples for javax.swing Box createVerticalBox
public static Box createVerticalBox()
Box
that displays its components from top to bottom. 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; }