Homework 1
Homework 1
By
Joelle Al-Rammah
ID#22330132
Submitted to
Samir Saad
Bhamdoun, Lebanon
December 12, 2024
Homework 1
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
MotherPanel.add(buttonsPanel, BorderLayout.SOUTH);
MotherPanel.add(textPanel, BorderLayout.CENTER);
MotherPanel.add(northPanel, BorderLayout.NORTH);
MotherPanel.add(westPanel, BorderLayout.WEST);
MotherPanel.add(eastPanel, BorderLayout.EAST);
textPanel.add(label);
textPanel.add(textField);
buttonsPanel.add(btok);
JComboBox<String> comboBox = new JComboBox<>(new String[]{"Option 1", "Option 2", "Option 3"});
JCheckBox checkBox = new JCheckBox("Check me");
JTextField additionalField = new JTextField(15);
application.add(MotherPanel);
application.pack();
application.setVisible(true);
}
}