Methods Summary |
---|
protected void | addIcon(java.awt.Container top)Creates and adds a JLabel representing the icon returned from
getIcon to top . This is messaged from
createMessageArea
/* Create the icon. */
Icon sideIcon = getIcon();
if (sideIcon != null) {
JLabel iconLabel = new JLabel(sideIcon);
iconLabel.setVerticalAlignment(SwingConstants.CENTER);
top.add(iconLabel, "West");
}
|
protected java.awt.Container | createButtonArea()Creates and returns a Container containin the buttons. The buttons
are created by calling getButtons .
Container b = super.createButtonArea();
if(b != null && b.getLayout() instanceof ButtonAreaLayout) {
((ButtonAreaLayout)b.getLayout()).setCentersChildren(false);
}
return b;
|
protected java.awt.Container | createSeparator()
return new JPanel() {
public Dimension getPreferredSize() {
return new Dimension(10, 2);
}
public void paint(Graphics g) {
int width = getWidth();
g.setColor(Color.darkGray);
g.drawLine(0, 0, width, 0);
g.setColor(Color.white);
g.drawLine(0, 1, width, 1);
}
};
|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent x)Creates a new MotifOptionPaneUI instance.
return new MotifOptionPaneUI();
|
public java.awt.Dimension | getMinimumOptionPaneSize()Returns null, CDE/Motif does not impose a minimum size.
return null;
|