Follow The Instructions Given On Each Item. Paste Your and - Use The Format Given and Avoid Using Another Format
Follow The Instructions Given On Each Item. Paste Your and - Use The Format Given and Avoid Using Another Format
Form Requirements:
9 – JLabel
4 - JTextField
4 – JradioButton
2 - JCombobox
3 – JButton
Samuel F. Camorongan
Faculty, College of Information Technology
Function for button Submit:
Take note: For the button submit, once the user click the button OK at the dialog
box it will automatically clear the user input.
Samuel F. Camorongan
Faculty, College of Information Technology
INSERT THE ACTUAL CODE:
package JAVIER_SURVEYFORM;
import java.awt.EventQueue;
import javax.swing.*;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public JAVIER_SURVEYFORM() {
initialize();
}
Samuel F. Camorongan
Faculty, College of Information Technology
StudentID = new JTextField();
StudentID.setBounds(536, 64, 128, 20);
frame.getContentPane().add(StudentID);
YearBlock = new JComboBox<>(new String[]{"Select Year & Block", "1st Year - Block
A", "1st Year - Block B", "1st Year - Block C", "1st Year - Block D", "1st Year - Block
E", "2nd Year - Block A", "2nd Year - Block B", "2nd Year - Block C", "2nd Year - Block
D", "2nd Year - Block E", "3rd Year - Block A", "3rd Year - Block B", "3rd Year - Block
C", "3rd Year - Block D", "3rd Year - Block E", "4th Year - Block A", "4th Year - Block
B", "4th Year - Block C", "4th Year - Block D", "4th Year - Block E"});
YearBlock.setMaximumRowCount(25);
YearBlock.setBounds(434, 143, 230, 22);
frame.getContentPane().add(YearBlock);
Samuel F. Camorongan
Faculty, College of Information Technology
}
});
Samuel F. Camorongan
Faculty, College of Information Technology
Samuel F. Camorongan
Faculty, College of Information Technology