Package java.awt

Examples of java.awt.GridLayout


* Last changed by $$Author: javajox $$ on $$Date: 2008/07/31 16:45:16 $$
*/
public class DownloadView extends JPanel {

    public DownloadView() {
       this.setLayout( new GridLayout(1,1) );
       JScrollPane jsp = new JScrollPane();
       jsp.setViewportView( new DownloadTable() );
       this.add( jsp );
    }
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

      DownloadSession session = (DownloadSession)value;
      this.setFileSize(session.getFileSize());
      this.setGapList(session.getGapList());
      this.setTransferredBytesCount(session.getTransferredBytes());
      JPanel panel = new JPanel();
      panel.setLayout(new GridLayout(1,1));
      //panel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
      panel.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));
      if(isSelected) {
          panel.setForeground(table.getSelectionForeground());
          panel.setBackground(table.getSelectionBackground());
View Full Code Here

     splitPane = new JSplitPane();
     splitPane2 = new JSplitPane();
     serverListScrollPane = new JScrollPane();
     serverMessagesScrollPane = new JScrollPane();
     myInfoScrollPane = new JScrollPane();
     gridLayout = new GridLayout(1,1);
     serverListTable = new ServerListTable(parent);
     //myInfoTable = new MyInfoTable();
     myInfoTable = new Info();
     serverMessages = new JTextArea();    
     splitPane.setDividerLocation(200);
View Full Code Here

  }
 
  private void initComponents() {
   
    splitPane = new JSplitPane();
    gridLayout = new GridLayout(1,1);
    downloadsScrollPane = new JScrollPane();
    uploadsScrollPane = new JScrollPane();
    downloadsTable = new DownloadsTable(parent);
    uploadsTable = new UploadsTable(parent);
   
View Full Code Here

  
   public void init(String[] args) {
      setBounds(getBounds(args));
      JPanel box = new JPanel();
      // Use BoxLayout.Y_AXIS below if you want a vertical box
      box.setLayout(new GridLayout(1,1));
      setContentPane(box);
      this.pane = new JTextPane();
      this.pane.setBackground(getColor(args));
      JScrollPane pane = new JScrollPane(this.pane);
      // this.pane.setBorder(BorderFactory.createRaisedBevelBorder());
View Full Code Here

    public LimitPropertiesPanel(MenuResourceBundle resources) {
        super(null);
        this.resources = resources;
        setLayout(new BorderLayout());
        // limit combo
        JPanel title = new JPanel(new GridLayout());
        JPanel combo = new JPanel(new FlowLayout(FlowLayout.LEFT));
        limits = new Vector();
        cblimits = new JComboBox(limits);
        cblimits.setMaximumRowCount(30);
        cblimits.setEditable(true);
View Full Code Here

        JPanel description_panel = new JPanel();


        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        description_panel.setLayout(new GridLayout(1,1));
       
        top_panel.setBackground(new java.awt.Color(255, 153, 0));
        top_panel.setPreferredSize(new java.awt.Dimension(100, 70));

        jmule_name_label.setFont(new java.awt.Font("Dialog", 1, 14));
View Full Code Here

      private JScrollPane scroll_pane;
      private JTable table;
     
      public PropertiesPanel() {
       
        this.setLayout(new GridLayout(1,1));
       
        String[] column_names = { "Property", "Value" };
        Set keys = System.getProperties().keySet();
        Object[][] data = new Object[keys.size()][2];
        int i = 0;
View Full Code Here

            label_icon.setIcon(ImgRep.getIcon("bomb.png"));
            label_icon.setText("<html><center>Attention !!! This is highly unstable nightly build of JMule,<br> your feedback on our forums FORUM.JMULE.ORG<br> will be greatly appreciated</center></html>");
            label_icon.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
            label_icon.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
           
            this.setLayout(new GridLayout(1,1));
            this.add(label_icon);
       
      }
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.