Package java.awt

Examples of java.awt.GridLayout


                list.setCellRenderer(new ConflictListCellRenderer());
                JButton changeSourceAlias;
                JPanel treePane = new JPanel(new BorderLayout());
                final SourceTree st = SourceTree.getFromPool("PropertiesPanel0");
                treePane.add(new JScrollPane(st), BorderLayout.CENTER);
                JPanel bpanel = new JPanel(new GridLayout(1, 1));
                bpanel.add(changeSourceAlias = new JButton(resources.getString("changeSourceAlias")));
                treePane.add(bpanel, BorderLayout.SOUTH);
                JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JScrollPane(list), treePane);
                list.setVisibleRowCount(10);
                JPanel bbox = new JPanel(new FlowLayout());
View Full Code Here


        super(resources.getString("pageNameOptionTitle"), resources.getString("pageNameOptionDescription"));

       

        // Some help contents..
        helpPanel = new JPanel(new GridLayout(1,2));
        helpPanel.setBorder(BorderFactory.createTitledBorder(resources.getString("order0PageNameOptionHelpTitle")));
        helpText = new JLabel(resources.getString("order0PageNameOptionHelpText"));
        helpText.setFont(new Font("Dialog", Font.PLAIN,12));
        helpImage = new JLabel(resources.getIcon("order0PageNameOptionHelpImage"));
        helpPanel.add(helpText);
View Full Code Here

      Box topBox = Box.createHorizontalBox();

      JPanel gridPanel = new JPanel(new BorderLayout());
      gridPanel.setBorder(BorderFactory.createTitledBorder(resources.getString("GridArrayParameters")));
      JPanel colpane = new JPanel(new GridLayout(2,2));
      colpane.add(new JLabel(resources.getString("NumberOfColumns")));
      colpane.add(nfNumCellX = new NumberField(cells[0].length,5));
      colpane.add(new JLabel(resources.getString("ActiveColumn")));
      colpane.add(nfActiveX = new NumberField(activeX,5));
      gridPanel.add(colpane,BorderLayout.WEST);

      JPanel rowpane = new JPanel(new GridLayout(2,2));
      rowpane.add(new JLabel(resources.getString("NumberOfRows")));
      rowpane.add(nfNumCellY = new NumberField(cells.length,5));
      rowpane.add(new JLabel(resources.getString("ActiveRow")));
      rowpane.add(nfActiveY = new NumberField(activeY,5));
      gridPanel.add(rowpane,BorderLayout.EAST);
View Full Code Here

      speed_limits_dialog = new AdjustSpeedLimitsDialog(frame);
      this.setPreferredSize(new java.awt.Dimension(100, 25));
      this.setLayout(new BorderLayout());
      this.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));
      JPanel left_panel = new JPanel();
      left_panel.setLayout(new GridLayout(1,2,10,0));
      server_status.setIcon(ImgRep.getIcon("toolbar_disconnected.png"));
      left_panel.add(server_status);
      left_panel.add(client_id);
      JPanel right_panel = new JPanel();
      right_panel.setLayout(new GridLayout(1,2,10,0));
      download_speed.setIcon(ImgRep.getIcon("down.gif"));
      upload_speed.setIcon(ImgRep.getIcon("up.gif"));
      right_panel.add(download_speed);
      right_panel.add(upload_speed);
      this.add(left_panel,BorderLayout.WEST);
View Full Code Here

  private JFrame parent;
  JXBusyLabel busy_label = new JXBusyLabel();
  private JTabbedPane tabbed_panel;
  public SearchResultPanel(JFrame parent, JTabbedPane tabbed_panel) {
    this.parent = parent;
    this.setLayout(new GridLayout(1,1));
    this.tabbed_panel = tabbed_panel;
    busy_label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    //busy_label.setPreferredSize(new Dimension(250,250));
    //busy_label.setMinimumSize(new Dimension(250,250));
    //busy_label.setMaximumSize(new Dimension(250,250));
View Full Code Here

        updateData();
  }
 
  private void init() {
   
    GridLayout general_panel_grid_layout = new GridLayout(2,2);
   
    general_panel.setLayout(general_panel_grid_layout);
   
    general_panel.add(sessions_panel);
   
    general_panel.add(peers_panel);
   
    general_panel.add(servers_panel);
   
    general_panel.add(shared_files_panel);
   
    GridLayout java_vm_panel_grid_layout = new GridLayout(2,2);
   
    java_vm_panel.setLayout(java_vm_panel_grid_layout);
   
    java_vm_panel.add(java_panel);
   
    java_vm_panel.add(java_heap_memory_panel);
   
    java_vm_panel.add(java_non_heap_momory_panel);
   
    java_vm_panel.add(java_threads_panel);
   
    tabbed_panel.add("General", general_panel);
   
    tabbed_panel.add("Java VM", java_vm_panel);
   
    this.setLayout(new GridLayout(1,1));
   
    this.add(tabbed_panel);
   
    types.add(JMuleCoreStats.ST_NET_SESSION_DOWNLOAD_BYTES);
    types.add(JMuleCoreStats.ST_NET_SESSION_UPLOAD_BYTES);
View Full Code Here

    pane.add(leftPane, BorderLayout.CENTER);

    final JButton newv, newi, del, up, down, ok;

    JPanel rightPane = new JPanel(new BorderLayout());
    JPanel buttons = new JPanel(new GridLayout(5,1));
    buttons.add(newv =new JButton(resources.getString("NewValue")));
    buttons.add(newi = new JButton(resources.getString("NewInterval")));
    buttons.add(del = new JButton(resources.getString("Delete")));
    buttons.add(up = new JButton(resources.getString("MoveUp")));
    buttons.add(down = new JButton(resources.getString("MoveDown")));
View Full Code Here

    add(createUpperContent(),BorderLayout.NORTH);
    add(createTable(),BorderLayout.CENTER);
   
   
   
    JPanel lowerContent = new JPanel(new GridLayout(2,1))
    lowerContent.setBorder(BorderFactory.createEtchedBorder());
    lowerContent.add(createDoublevalueMapperEditionPane());
    lowerContent.add(createLowerContent());
    add(lowerContent,BorderLayout.SOUTH);
   
View Full Code Here

        if (listModel.size()>0) list.setSelectedIndex(0);
       
        // Set the buttons
        box = Box.createVerticalBox();
        box.add(Box.createVerticalGlue());
        JPanel buttonGrid = new JPanel(new GridLayout(4,1));
        buttonGrid.add(bAdd = new JButton(resources.getString("Add")));
        buttonGrid.add(bRemove = new JButton(resources.getString("Remove")));
        buttonGrid.add(bMoveBefore = new JButton(resources.getString("MoveBefore")));
        buttonGrid.add(bMoveAfter = new JButton(resources.getString("MoveAfter")));
        box.add(buttonGrid);
View Full Code Here

              JButton up_button = new JButton("Up");
              JButton down_button = new JButton("Down");
              JButton ok_button = new JButton("OK");
              JButton cancel_button = new JButton("Cancel");
              JButton apply_button = new JButton("Apply");
              right_panel.setLayout(new GridLayout(2,1));
              right_panel.add(up_button);
              right_panel.add(down_button);
              bottom_panel.setLayout(new GridLayout(1,3));
              bottom_panel.add(ok_button);
              bottom_panel.add(apply_button);
              bottom_panel.add(cancel_button);
              center_panel.setLayout(new GridLayout(1,1));
              col_set_frame.setSize(400, 300);
              col_set_frame.setLayout(new BorderLayout());
              col_set_frame.add(center_panel,BorderLayout.CENTER);
              col_set_frame.add(right_panel, BorderLayout.EAST);
              col_set_frame.add(bottom_panel, BorderLayout.SOUTH);
View Full Code Here

TOP

Related Classes of java.awt.GridLayout

Copyright © 2018 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.