Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import javax.swing.*;
- /*
- * Created by JFormDesigner on Sun Nov 14 15:02:19 CET 2010
- */
- /**
- * @author patrick van de streek
- */
- public class ghoulGUI extends JPanel {
- public ghoulGUI() {
- initComponents();
- }
- private void initComponents() {
- // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
- // Generated using JFormDesigner Evaluation license - patrick van de streek
- frame1 = new JFrame();
- textField1 = new JTextField();
- textField2 = new JTextField();
- textField3 = new JTextField();
- textField4 = new JTextField();
- comboBox1 = new JComboBox();
- comboBox2 = new JComboBox();
- comboBox3 = new JComboBox();
- //======== frame1 ========
- {
- frame1.setAlwaysOnTop(true);
- frame1.setFont(new Font("Eras Demi ITC", Font.BOLD | Font.ITALIC, 10));
- Container frame1ContentPane = frame1.getContentPane();
- frame1ContentPane.setLayout(null);
- //---- textField1 ----
- textField1.setText("Ghoul Viruz Whiper");
- textField1.setFont(textField1.getFont().deriveFont(Font.BOLD|Font.ITALIC, textField1.getFont().getSize() + 10f));
- textField1.setBackground(null);
- frame1ContentPane.add(textField1);
- textField1.setBounds(70, 0, 220, 45);
- //---- textField2 ----
- textField2.setText("Do you wanna bank?");
- textField2.setHorizontalAlignment(SwingConstants.CENTER);
- frame1ContentPane.add(textField2);
- textField2.setBounds(15, 85, 110, textField2.getPreferredSize().height);
- //---- textField3 ----
- textField3.setText("Picking up charms?");
- textField3.setHorizontalAlignment(SwingConstants.CENTER);
- frame1ContentPane.add(textField3);
- textField3.setBounds(15, 190, 110, textField3.getPreferredSize().height);
- //---- textField4 ----
- textField4.setText("withdrawing amount");
- textField4.setHorizontalAlignment(SwingConstants.CENTER);
- frame1ContentPane.add(textField4);
- textField4.setBounds(15, 135, 110, textField4.getPreferredSize().height);
- //---- comboBox1 ----
- comboBox1.setModel(new DefaultComboBoxModel(new String[] {
- "Yes",
- "no"
- }));
- frame1ContentPane.add(comboBox1);
- comboBox1.setBounds(290, 85, 50, comboBox1.getPreferredSize().height);
- //---- comboBox2 ----
- comboBox2.setModel(new DefaultComboBoxModel(new String[] {
- "10",
- "15",
- "20",
- "25"
- }));
- frame1ContentPane.add(comboBox2);
- comboBox2.setBounds(290, 135, 50, comboBox2.getPreferredSize().height);
- //---- comboBox3 ----
- comboBox3.setModel(new DefaultComboBoxModel(new String[] {
- "yes",
- "no"
- }));
- frame1ContentPane.add(comboBox3);
- comboBox3.setBounds(290, 190, 50, comboBox3.getPreferredSize().height);
- { // compute preferred size
- Dimension preferredSize = new Dimension();
- for(int i = 0; i < frame1ContentPane.getComponentCount(); i++) {
- Rectangle bounds = frame1ContentPane.getComponent(i).getBounds();
- preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
- preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
- }
- Insets insets = frame1ContentPane.getInsets();
- preferredSize.width += insets.right;
- preferredSize.height += insets.bottom;
- frame1ContentPane.setMinimumSize(preferredSize);
- frame1ContentPane.setPreferredSize(preferredSize);
- }
- frame1.pack();
- frame1.setLocationRelativeTo(frame1.getOwner());
- }
- // JFormDesigner - End of component initialization //GEN-END:initComponents
- }
- // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
- // Generated using JFormDesigner Evaluation license - patrick van de streek
- private JFrame frame1;
- private JTextField textField1;
- private JTextField textField2;
- private JTextField textField3;
- private JTextField textField4;
- private JComboBox comboBox1;
- private JComboBox comboBox2;
- private JComboBox comboBox3;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement