Package java.awt

Examples of java.awt.BorderLayout


    setLocationRelativeTo(getParent());

    JPanel contentPanel = new JPanel();
    contentPanel.setLayout(new GridLayout(1, 2, 10, 0));

    JPanel panelAdded = new JPanel(new BorderLayout());
    panelAdded.setBorder(BorderFactory.createTitledBorder(mLocalizer.msg("added", "New channels: {0}", mAddedList.size())));

    DefaultListModel listModel = new DefaultListModel();
    for (int i = 0; i < mAddedList.size(); i++) {
      listModel.addElement(mAddedList.get(i));
    }
    ChannelJList list = new ChannelJList(listModel);
    list.setCellRenderer(new ChannelListCellRenderer(true, true));

    panelAdded.add(new JScrollPane(list), BorderLayout.CENTER);

    JPanel panelDeleted = new JPanel(new BorderLayout());
    panelDeleted.setBorder(BorderFactory.createTitledBorder(mLocalizer.msg("deleted", "Removed channels: {0}", mDeletedList.size())));

    listModel = new DefaultListModel();
    for (int i = 0; i < mDeletedList.size(); i++) {
      listModel.addElement(mDeletedList.get(i));
View Full Code Here


public class DateChooserPanel extends JPanel {
 
  public DateChooserPanel(MainFrame parent, JComponent finderPanel) {
    setOpaque(false);
    setLayout(new BorderLayout(0,7));
   
    add(finderPanel,BorderLayout.CENTER);
  }
View Full Code Here

    pack();
    setVisible(true);
}

protected void buildWindow() {
    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(questionPanel(), BorderLayout.NORTH);
    getContentPane().add(editPanel(), BorderLayout.CENTER);
    getContentPane().add(buttonPanel(), BorderLayout.SOUTH);

    addWindowListener(new WindowAdapter() {
View Full Code Here

      public void setEnabled(boolean enabled) {
        super.setEnabled(enabled);
        chooseButton.setEnabled(enabled);
      }
    };
    customPanel.setLayout(new BorderLayout());
    customPanel.add(chooseButton, BorderLayout.WEST);
    customPanel.add(m_ObjectPropertyPanel, BorderLayout.CENTER);
    return customPanel;
  }
View Full Code Here

    protected void initGUI() {
      JPanel      panel;
      CheckBoxListModel    model;

      setTitle("Filtering Capabilities...");
      setLayout(new BorderLayout());
     
      panel = new JPanel(new BorderLayout());
      panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
      getContentPane().add(panel, BorderLayout.NORTH);
      m_InfoLabel.setText(
      "<html>"
    + m_ClassType.getName().replaceAll(".*\\.", "") + "s"
View Full Code Here

     */
    public JTreePopupMenu(JTree tree) {

      m_Self = this;
     
      setLayout(new BorderLayout());
      JPanel panel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
      add(panel, BorderLayout.SOUTH);

      if (ClassDiscovery.hasInterface(CapabilitiesHandler.class, m_ClassType)) {
  // filter
  m_FilterButton.setMnemonic('F');
  m_FilterButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      if (e.getSource() == m_FilterButton) {
        CapabilitiesFilterDialog dialog = new CapabilitiesFilterDialog();
        dialog.setCapabilities(m_CapabilitiesFilter);
        dialog.setPopup(m_Self);
        dialog.setVisible(true);
        m_Support.firePropertyChange("", null, null);
        repaint();
      }
    }
  });
  panel.add(m_FilterButton);
 
  // remove
  m_RemoveFilterButton.setMnemonic('R');
  m_RemoveFilterButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      if (e.getSource() == m_RemoveFilterButton) {
        m_CapabilitiesFilter = null;
        m_Support.firePropertyChange("", null, null);
        repaint();
      }
    }
  });
  panel.add(m_RemoveFilterButton);
      }

      // close
      m_CloseButton.setMnemonic('C');
      m_CloseButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          if (e.getSource() == m_CloseButton) {
            m_Self.setVisible(false);
          }
        }
      });
      panel.add(m_CloseButton);
     
      m_tree = tree;
     
      JPanel treeView = new JPanel();
      treeView.setLayout(new BorderLayout());
      treeView.add(m_tree, BorderLayout.NORTH);
     
      // make backgrounds look the same
      treeView.setBackground(m_tree.getBackground());

View Full Code Here

        w.dispose();
      }
    }
  });
     
      setLayout(new BorderLayout());

      if (m_canChangeClassInDialog) {
  JButton chooseButton = createChooseClassButton();
  JPanel top = new JPanel();
  top.setLayout(new BorderLayout());
  top.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
  top.add(chooseButton, BorderLayout.WEST);
  top.add(m_ClassNameLabel, BorderLayout.CENTER);
  add(top, BorderLayout.NORTH);
      } else {
View Full Code Here

  /**
   * Sets up the array editor.
   */
  public GenericArrayEditor() {

    setLayout(new BorderLayout());
    add(m_Label, BorderLayout.CENTER);
    m_DeleteBut.addActionListener(m_InnerActionListener);
    m_EditBut.addActionListener(m_InnerActionListener);
    m_UpBut.addActionListener(m_InnerActionListener);
    m_DownBut.addActionListener(m_InnerActionListener);
View Full Code Here

    //    m_ElementEditor.setValue(m_ElementClass.newInstance());
    //  }
    //}
   
    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.add(view, BorderLayout.CENTER);
    panel.add(m_AddBut, BorderLayout.EAST);
    add(panel, BorderLayout.NORTH);
    add(new JScrollPane(m_ElementList), BorderLayout.CENTER);
          JPanel panel2 = new JPanel();
View Full Code Here

   * creates all the components in the frame
   */
  protected void createPanel() {
    JScrollPane                pane;
   
    setLayout(new BorderLayout());
   
    menuItemMean = new JMenuItem("Get mean...");
    menuItemMean.addActionListener(this);
    menuItemSetAllValues = new JMenuItem("Set all values to...");
    menuItemSetAllValues.addActionListener(this);
View Full Code Here

TOP

Related Classes of java.awt.BorderLayout

Copyright © 2015 www.massapicom. 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.