59.2k views
1 vote
Suppose a JPanel with a BorderLayout manager contains two components: component1, which was added to the EAST, and component2, which was added to the west. Which parts of the JPanel appear?

I. North

II. South

III. Center

IV. West

V. East


a) II

b) I, II, III

c) III, IV and V

d) IV an V

User Rattray
by
5.1k points

1 Answer

1 vote

Answer:

b) I, II, III

Step-by-step explanation:

Since the two components are added to the 'east' and 'west', and the JPanel has a BorderLayout manager, then North, South and Center parts of the JPanel will appear.

User Daviestar
by
4.4k points