Examples of BoxLayout


Examples of javax.swing.BoxLayout

        else {
           setCustomGradleExecutor(new File(customExecutorPath));
        }

       JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));

        panel.add(Utility.addLeftJustifiedComponent(useCustomGradleExecutorCheckBox));
        JComponent sideBySideComponent = createSideBySideComponent(customGradleExecutorField, browseForCustomGradleExecutorButton);
        sideBySideComponent.setBorder(BorderFactory.createEmptyBorder(0, 30, 0, 0)); //indent it
        panel.add(sideBySideComponent);
View Full Code Here

Examples of javax.swing.BoxLayout

        panel.add(widget.getWidget(), constraints.rc(i * 2 + 1, 3, "rtb"));
      }
    }
    if (buttons.size() > 0) {
      JPanel buttonLayout = new JPanel();
      buttonLayout.setLayout(new BoxLayout(buttonLayout, BoxLayout.X_AXIS));
      buttonLayout.add(Box.createHorizontalGlue());
      for (int i = 0; i < buttons.size(); i++) {
        buttonLayout.add(Box.createHorizontalStrut(COMPONENT_SPACING));
        buttonLayout.add(((Button) buttons.get(i)).getWidget());
      }
View Full Code Here

Examples of javax.swing.BoxLayout

    final Icon landscapeIcon = guiContext.getIconTheme().getLargeIcon(getLocale(), "pagesetup.landscape");
    final JLabel landscapeLabel = new JLabel(messages.getString("PageSetupDialog.Landscape"), landscapeIcon, SwingConstants.LEFT);
    landscapeLabel.setLabelFor(landscapeModeBox);

    final JPanel contentPane = new JPanel();
    contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.X_AXIS));
    contentPane.setBorder(BorderFactory.createCompoundBorder
        (BorderFactory.createTitledBorder(messages.getString("PageSetupDialog.Orientation")),
            BorderFactory.createEmptyBorder(5, 5, 5, 5)));
    contentPane.add(portraitModeBox);
    contentPane.add(portraitLabel);
View Full Code Here

Examples of javax.swing.BoxLayout

      super(parent, title, true);

      this.isPassword = isPassword;

      JPanel pan = new JPanel();
      pan.setLayout(new BoxLayout(pan, BoxLayout.Y_AXIS));

      for (int i = 0; i < content.length; i++)
      {
        if ((content[i] == null) || (content[i] == ""))
          continue;
View Full Code Here

Examples of javax.swing.BoxLayout

        }

        if (box == null) {

            box = new JPanel();
            box.setLayout(new BoxLayout(box, BoxLayout.Y_AXIS));
            box.setAlignmentX(Component.LEFT_ALIGNMENT);

            JPanel stuff = new JPanel();

            JPanel pal = null;
View Full Code Here

Examples of javax.swing.BoxLayout

            if (embedded) {
                createInterface(); // again, reset for new config
                // values

                setLayout(new BoxLayout(this, orientation));

                if (panel.getLayout() instanceof BorderLayout) {
                    if (configuration.equalsIgnoreCase(WEST_CONFIG)) {
                        panel.add(this, BorderLayout.WEST);
                    } else if (configuration.equalsIgnoreCase(EAST_CONFIG)) {
View Full Code Here

Examples of javax.swing.BoxLayout

    protected void createInterface() {
        removeAll();

        setAlignmentX(LEFT_ALIGNMENT);
        setAlignmentY(CENTER_ALIGNMENT);
        setLayout(new BoxLayout(this, orientation));

        top = new JButton(topgif);
        top.setActionCommand(LayersPanel.LayerTopCmd);
        top.setPressedIcon(topclickedgif);
        top.setToolTipText(i18n.get(LayerControlButtonPanel.class,
View Full Code Here

Examples of javax.swing.BoxLayout

     */
    public static JFrame getPaletteWindow(Layer layer, ComponentListener cl) {
        Component layerGUI = getLayerGUIComponent(layer);

        JPanel dismissBox = new JPanel();
        dismissBox.setLayout(new BoxLayout(dismissBox, BoxLayout.X_AXIS));
        dismissBox.setAlignmentX(Component.LEFT_ALIGNMENT);
        dismissBox.setAlignmentY(Component.BOTTOM_ALIGNMENT);
        dismissBox.add(Box.createHorizontalGlue());
        JButton dismiss = new JButton("Close");
        dismissBox.add(dismiss);
        dismissBox.add(Box.createHorizontalGlue());

        JPanel pane = new JPanel();
        pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));
        pane.setAlignmentX(Component.CENTER_ALIGNMENT);
        pane.setAlignmentY(Component.BOTTOM_ALIGNMENT);
        pane.add(layerGUI);
        pane.add(dismissBox);

View Full Code Here

Examples of javax.swing.BoxLayout

        if (pal == null) {
            pal = new JLabel("No Palette");
        }

        JPanel p = new JPanel();
        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
        p.setAlignmentX(Component.LEFT_ALIGNMENT);
        p.setAlignmentY(Component.BOTTOM_ALIGNMENT);
        p.add(pal);

        return p;
View Full Code Here

Examples of javax.swing.BoxLayout

    public static JFrame getNoScrollPaletteWindow(Component gui,
                                                  String windowName,
                                                  ComponentListener cl) {

        JPanel pane = new JPanel();
        pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));
        pane.setAlignmentX(Component.CENTER_ALIGNMENT);
        pane.setAlignmentY(Component.BOTTOM_ALIGNMENT);
        pane.add(gui);
        JFrame paletteWindow = new JFrame(windowName);
        paletteWindow.addComponentListener(cl);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.