1 30 31 package com.jgoodies.looks.windows; 32 33 import java.awt.Container ; 34 35 import javax.swing.JComponent ; 36 import javax.swing.JPanel ; 37 import javax.swing.UIManager ; 38 import javax.swing.plaf.ComponentUI ; 39 import javax.swing.plaf.basic.BasicOptionPaneUI ; 40 41 import com.jgoodies.looks.common.ExtButtonAreaLayout; 42 43 51 public final class WindowsOptionPaneUI extends BasicOptionPaneUI { 52 53 public static ComponentUI createUI(JComponent b) { 54 return new WindowsOptionPaneUI(); 55 } 56 57 61 protected Container createButtonArea() { 62 JPanel bottom = new JPanel (new ExtButtonAreaLayout(true, 6)); 63 bottom.setBorder(UIManager.getBorder("OptionPane.buttonAreaBorder")); 64 addButtonComponents(bottom, getButtons(), getInitialValueIndex()); 65 return bottom; 66 } 67 68 } | Popular Tags |