Examples of BoxLayout


Examples of javax.swing.BoxLayout

  }

  public void setLayout(LayoutManager manager) {
    if(mLocation != null) {
      if(mLocation.equals(BorderLayout.NORTH)) {
        super.setLayout(new BoxLayout(this,BoxLayout.X_AXIS));
      } else {
        super.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
      }
    }
  }
View Full Code Here

Examples of javax.swing.BoxLayout

      super();
      setLayout(new BorderLayout());
      setBorder(Borders.DIALOG_BORDER);

      JPanel content = new JPanel();
      content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS));
      mDatePanel = new DateRangePanel();
      mTimePanel = new TimeRangePanel();
      mChannelPanel = new ChannelSelectionPanel(parentFrame, new Channel[]{});
      mFilterPanel = new FilterSelectionPanel();
View Full Code Here

Examples of javax.swing.BoxLayout

   
    JPanel shapePanel = new JPanel();
    shapePanel.add(gateShape.getJLabel());
    shapePanel.add(gateShape.getJComboBox());
   
    setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
    add(Box.createGlue());
    add(shapePanel);
    add(localePanel);
    add(replAccents);
    add(Box.createGlue());
View Full Code Here

Examples of javax.swing.BoxLayout

      position = BorderLayout.NORTH;
    } else {
      throw new IllegalArgumentException();
    }
    this.remove(subpanel);
    subpanel.setLayout(new BoxLayout(subpanel, axis));
    this.add(subpanel, position);
    this.orientation = value;
  }
View Full Code Here

Examples of javax.swing.BoxLayout

    accelPanel.add(accelRestart, BorderLayout.PAGE_END);
    accelRestart.setFont(accelRestart.getFont().deriveFont(Font.ITALIC));
    JPanel accelPanel2 = new JPanel();
    accelPanel2.add(accelPanel);
   
    setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
    add(Box.createGlue());
    add(accelPanel2);
    add(Box.createGlue());
  }
View Full Code Here

Examples of javax.swing.BoxLayout

      setLayout(new FormLayout("right:pref, fill:pref:grow", "pref, 3dlu, pref"));

      CellConstraints cc = new CellConstraints();

      mListPn = new JPanel();
      mListPn.setLayout(new BoxLayout(mListPn, BoxLayout.Y_AXIS));
      add(mListPn, cc.xy(1, 1));

      for (int time : times) {
        final Row row = new Row(time);
        row.setBorder(BorderFactory.createEmptyBorder(2, 0, 2, 0));
View Full Code Here

Examples of javax.swing.BoxLayout

  public JPanel getSettingsPanel() {
    String msg;

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

    JPanel pn = new JPanel(new BorderLayout());
    pn.setBorder(BorderFactory.createEmptyBorder(3, 0, 5, 0));
    msg = mLocalizer.msg("description",
        "Accept all programs containing the following keyword:");
View Full Code Here

Examples of javax.swing.BoxLayout

    JPanel contentPane=(JPanel)getContentPane();
    contentPane.setLayout(new BorderLayout());
    contentPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));

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

    JLabel channelLabel=new JLabel(program.getChannel().getName());
    channelLabel.setIcon(UiUtilities.createChannelIcon(program.getChannel().getIcon()));
    channelLabel.setVerticalTextPosition(SwingConstants.BOTTOM);
    channelLabel.setHorizontalTextPosition(SwingConstants.CENTER);
View Full Code Here

Examples of javax.swing.BoxLayout

    {
      progressDialog = null;
    }

    final JComponent extensionArea = statusBar.getExtensionArea();
    extensionArea.setLayout(new BoxLayout(extensionArea, BoxLayout.X_AXIS));
    if (progressBar != null)
    {
      extensionArea.add(progressBar);
    }
    extensionArea.add(pageLabel);
View Full Code Here

Examples of javax.swing.BoxLayout

    pageLabel = new JLabel();
    previewPane.addPropertyChangeListener(new PreviewInternalFrame.PreviewPanePropertyChangeHandler());

    final JComponent extensionArea = statusBar.getExtensionArea();
    extensionArea.setLayout(new BoxLayout(extensionArea, BoxLayout.X_AXIS));
    extensionArea.add(progressBar);
    extensionArea.add(pageLabel);

    final JComponent contentPane = new JPanel();
    contentPane.setLayout(new BorderLayout());
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.