Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago

Question

Explain the process of MBO

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago