01: package vicazh.hyperpool.themes;
02:
03: import java.awt.*;
04: import javax.swing.*;
05: import javax.swing.plaf.*;
06: import javax.swing.plaf.basic.*;
07:
08: /**
09: * Provides the look and feel for a <code>JOptionPane</code>.
10: *
11: * @author Victor Zhigunov
12: * @version 0.3.2
13: */
14: public class IOptionPaneUI extends BasicOptionPaneUI {
15: public static ComponentUI createUI(JComponent x) {
16: return new IOptionPaneUI();
17: }
18:
19: protected void addButtonComponents(Container container,
20: Object[] buttons, int initialIndex) {
21: super .addButtonComponents(container, buttons, initialIndex);
22: Component[] components = container.getComponents();
23: for (int i = 0; i < components.length; i++)
24: if (components[i] instanceof AbstractButton)
25: ((AbstractButton) components[i])
26: .setBorderPainted(false);
27: }
28: }
|