MainSeniorHelper.java
/*
    GUI Method was made in a separate makes the
    frame panels,buttons and texts found in my GUI
     */
GUI Method was made in a separate makes the
frame panels,buttons and texts found in my GUI
GUI Method was made in a separate makes the frame panels buttons and texts found in my GUI
public static void GUI() {
        JFrame frame = new JFrame();
        JPanel panel = new JPanel();
        frame.setSize(100, 100);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.add(panel);
        panel.setLayout(null);
        label = new JLabel("Type:");
        label.setBounds(10, 20, 80, 25);
        panel.add(label);
        choice = new JComboBox(option);
        choice.setBounds(100, 20, 165, 25);
        panel.add(choice);
        password = new JLabel("Name");
        password.setBounds(10, 50, 80, 25);
        panel.add(password);
        name = new JTextField();
        name.setBounds(100, 50, 165, 25);
        panel.add(name);
        yearEntry = new JLabel("Year of Grad");
        yearEntry.setBounds(10, 80, 80, 25);
        panel.add(yearEntry);
        year = new JTextField();
        year.setBounds(100, 80, 165, 25);
        panel.add(year);
        button = new JButton("Generate");
        button.setBounds(5, 110, 80, 25);
        button.addActionListener(new MainSeniorHelper());
        panel.add(button);
        success = new JLabel();
        success.setBounds(10, 140, 1000, 25);
        panel.add(success);
        usrName = new JLabel("");
        usrName.setBounds(10, 170, 1000, 25);
        panel.add(usrName);
        displayYr = new JLabel("");
        displayYr.setBounds(10, 190, 1000, 25);
        panel.add(displayYr);
        displayMessage = new JLabel("");
        displayMessage.setBounds(10,230,1000,25);
        panel.add(displayMessage);
        frame.setVisible(true);
    }
public static void GUI ( ) { JFrame frame = new JFrame ( ) ; JPanel panel = new JPanel ( ) ; frame . setSize ( 100 , 100 ) ; frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; frame . add ( panel ) ; panel . setLayout ( null ) ; label = new JLabel ( "Type:" ) ; label . setBounds ( 10 , 20 , 80 , 25 ) ; panel . add ( label ) ; choice = new JComboBox ( option ) ; choice . setBounds ( 100 , 20 , 165 , 25 ) ; panel . add ( choice ) ; password = new JLabel ( "Name" ) ; password . setBounds ( 10 , 50 , 80 , 25 ) ; panel . add ( password ) ; name = new JTextField ( ) ; name . setBounds ( 100 , 50 , 165 , 25 ) ; panel . add ( name ) ; yearEntry = new JLabel ( "Year of Grad" ) ; yearEntry . setBounds ( 10 , 80 , 80 , 25 ) ; panel . add ( yearEntry ) ; year = new JTextField ( ) ; year . setBounds ( 100 , 80 , 165 , 25 ) ; panel . add ( year ) ; button = new JButton ( "Generate" ) ; button . setBounds ( 5 , 110 , 80 , 25 ) ; button . addActionListener ( new MainSeniorHelper ( ) ) ; panel . add ( button ) ; success = new JLabel ( ) ; success . setBounds ( 10 , 140 , 1000 , 25 ) ; panel . add ( success ) ; usrName = new JLabel ( "" ) ; usrName . setBounds ( 10 , 170 , 1000 , 25 ) ; panel . add ( usrName ) ; displayYr = new JLabel ( "" ) ; displayYr . setBounds ( 10 , 190 , 1000 , 25 ) ; panel . add ( displayYr ) ; displayMessage = new JLabel ( "" ) ; displayMessage . setBounds ( 10 , 230 , 1000 , 25 ) ; panel . add ( displayMessage ) ; frame . setVisible ( true ) ; }
GUI Method was made in a separate makes the
frame panels,buttons and texts found in my GUI
GUI Method was made in a separate makes the frame panels buttons and texts found in my GUI