
Provides the basic look and feel for a
JOptionPane.
BasicMessagePaneUI provides a means to place an icon,
message and buttons into a
Container.
Generally, the layout will look like:
------------------
| i | message |
| c | message |
| o | message |
| n | message |
------------------
| buttons |
|________________|
icon is an instance of
Icon that is wrapped inside a
JLabel. The message is an opaque object and is tested
for the following: if the message is a
Component it is
added to the
Container, if it is an
Icon
it is wrapped inside a
JLabel and added to the
Container otherwise it is wrapped inside a
JLabel.
The above layout is used when the option pane's
ComponentOrientation property is horizontal, left-to-right.
The layout will be adjusted appropriately for other orientations.
The Container, message, icon, and buttons are all
determined from abstract methods.