Question
1. LinkedList: o Create an empty list, adding to the front or rear of the list. o Count the number of nodes in the list,
1. LinkedList:
o Create an empty list, adding to the front or rear of the list.
o Count the number of nodes in the list, delete element at the beginning or end of the list, search the list for a specific item
2. Layout managers:
o FlowLayout, GridLayout, GridBagLayout, BorderLayout, GridBagConstraints, Insets
3. Event listeners:
o WindowAdapter, ActionListener, MouseAdapter, MouseMotionListener, HyperlinkListener
4. Frames
o Using JFrame
o Creating frames and adding menus, and menuitems,
o The difference of Menu, MenuItem, MenuBar
5. The difference of JTField , JTextArea and JEditorPane
6. Be able to create a frame using JFrame
7. Be able to place menus onto the frame
8. Be able to place menu items onto the frame
9. Be able to create anonymous event objects
Example questions
1. What happens when you place a single button in the center of a container that uses BorderLayout manager?
2. What happens when you place multiple buttons in the south of a container that uses BorderLayout manager?
3. What event method is used to register window event onto a JFrame object?
4. Name two methods found in the WindowAdapter class.
1. Given that Flow represents a class that is a subclass of the class JFrame. Trace the code below and describe the output.
String arr[] = {One, Two, Three};
Flow f = new Flow(Test)
Container c = f.getContentPane();
c.setLayout(new FlowLayout(3));
for (int i = 0; I < arr.length; i++)
c.add(new JButton(arr[i]));
f.setSize(400, 300);
f.setVisible(true);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started