Week 7 : Graphical User Interface (GUI) Programming with Java Swing solution

$24.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (2 votes)

Question 1 – Experimenting with Layout
By using the following specified layout managers, write Java applications that create two rows of buttons, for example, “Button 1”, “Button 2”, and “Button 3” are in the first row and “Button 4”, “Button 5”, and “Button 6” are in the second row.

FlowLayoutManager
BorderLayoutManager
GridLayoutManager

Question 2 – Event Handling
Modify your code from Question #1 so that your application will print a message directly on the window indicating which button was clicked. Please use your favourite layout manager.

Question 3
Modify your code from Question #2 so that you can scribble on the window by dragging the mouse.