What happens if you add two different button objects to the SOUTH part of a frame using a BorderLayout?
    What happens if you add two different button objects to the SOUTH part of a frame using a BorderLayout?

What happens if you add two different button objects to the SOUTH part of a frame using a BorderLayout?

$15.99

1.      Write a statement to create a JFrame object with a title of “My First Window”.

2.      Given the object you created in question 1,write a statement to specify the window size to be 400 pixels wide and 300 pixels high?

3.      What would you need to do to the object from question 1 to make sure that the application containing the object terminated when the object’s window was closed?

4.      Write a Java statement to make the window associated with the object from question 1 visible.

5.      Explain how a BorderLayout manages its display area.

6.      Explain how a FlowLayout manages its display area.

7.      Write a Java statement to have the object from question 1 manage its display area by dividing it into 5 rows which have 3 columns each.

8.      The frame object from question 1 uses a BorderLayout by default. Write Java statements to create a JTextfield object and place it into the top part of the frame object’s window.

9.      Describe the sequence of steps needed to create 3 buttons and place them side by side in the bottom part of a frame which is using a BorderLayout.

10.  What happens if you add two different button objects to the SOUTH part of a frame using a BorderLayout?

11.  Write a sequence of statements to create 2 label objects, and do what is needed so the two labels appear one above the other on the left side of the display associated with a frame object which is using a BorderLayout. Create ALL objects required.

12.  What packages would need to be imported for the code from question 11?

A++ Answers For 12 Questions

Attached Files

Move over [ preview ] file name to preview content in it!

  • Answers java.zip [38.4KB]
    • Answers-studentq.doc [38.4KB] [ preview ]

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B