Package net.matuschek.swing

Examples of net.matuschek.swing.VerticalAlignPanel


    consLeft.gridx = 0;
    consLeft.gridy = 0;
    completePanel.add(leftPanel, consLeft);


    VerticalAlignPanel rightPanel = new VerticalAlignPanel();
    GridBagConstraints consRight  = new GridBagConstraints();
    consRight.gridx = 1;
    consRight.gridy = 0;
    completePanel.add(rightPanel, consRight);


    //
    // buttons
    //
    JButton buttAdd = new JButton();
    buttAdd.setText("Add");
    buttAdd.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        addURL();
      }
    });
    rightPanel.add(buttAdd,1);

    JButton buttDelete = new JButton();
    buttDelete.setText("Delete");
    buttDelete.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        deleteURL();
      }
    });
    rightPanel.add(buttDelete,1);

    JButton buttClose = new JButton();
    buttClose.setText("Close");
    buttClose.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        exitForm();
      }
    });
    rightPanel.add(buttClose,1);

    // list
    urlList = new JList();
    urlList.setVisibleRowCount(6);
    urlList.setMinimumSize(new java.awt.Dimension(40,4));
View Full Code Here


  }
      }
          );
   
    /** Heading **/
    VerticalAlignPanel headPanel = new VerticalAlignPanel();

    JLabel heading1 = new JLabel();
    heading1.setText("JoBo "+VERSION);
    heading1.setHorizontalAlignment(JTextField.CENTER);
    heading1.setFont(new java.awt.Font ("Dialog", 0, 24));
   
    JLabel heading2 = new JLabel();
    heading2.setText("look at http://www.matuschek.net/jobo/");
    heading2.setHorizontalAlignment(JTextField.CENTER);
    heading2.setFont(new java.awt.Font ("Dialog", 0, 12));
   
    JLabel heading3 = new JLabel();
    heading3.setText("for more details");
    heading3.setHorizontalAlignment(JTextField.CENTER);
    heading3.setFont(new java.awt.Font ("Dialog", 0, 12));
   
    headPanel.add(heading1);
    headPanel.add(heading2);
    headPanel.add(heading3);

    getContentPane().add(headPanel,BorderLayout.NORTH);

   
    /* fields */
 
View Full Code Here

TOP

Related Classes of net.matuschek.swing.VerticalAlignPanel

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.