0% found this document useful (0 votes)
29 views

Java 2

This document contains code for generating the GUI components of an exam management application, including labels, text fields, combo boxes, buttons, and a table to display exam data. The code defines the layout of these components in a panel using GroupLayout, including labels paired with fields for exam name, term, date, class, section, and subject. Buttons are also included for performing actions like adding, deleting, or updating exam records.

Uploaded by

kpegohe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Java 2

This document contains code for generating the GUI components of an exam management application, including labels, text fields, combo boxes, buttons, and a table to display exam data. The code defines the layout of these components in a panel using GroupLayout, including labels paired with fields for exam name, term, date, class, section, and subject. Buttons are also included for performing actions like adding, deleting, or updating exam records.

Uploaded by

kpegohe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">


private void initComponents() {

jLabel1 = new javax.swing.JLabel();


jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
txtename = new javax.swing.JTextField();
txtterm = new javax.swing.JComboBox<>();
txtdate = new com.toedter.calendar.JDateChooser();
txtclass = new javax.swing.JComboBox<>();
txtsection = new javax.swing.JComboBox<>();
txtsubject = new javax.swing.JComboBox<>();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 48)); // NOI18N


jLabel1.setText("Exam");

jPanel1.setBackground(new java.awt.Color(255, 204, 204));


jPanel1.setBorder(new
javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

jLabel2.setText("Exam Name");

jLabel3.setText("Term");

jLabel4.setText("Date");

jLabel5.setText("Class");

jLabel6.setText("Section");

jLabel7.setText("Subject");

txtterm.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "1st Term", "2nd Term",


"3rd Term", "4th Term", "5th Term" }));

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);


jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel5)
.addComponent(jLabel6)
.addComponent(jLabel7))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(txtename)
.addComponent(txtterm, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtdate, javax.swing.GroupLayout.DEFAULT_SIZE, 216,
Short.MAX_VALUE)
.addComponent(txtclass, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtsection, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(txtsubject, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

You might also like