1 30 31 package com.jgoodies.looks.plastic; 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 52 public final class PlasticOptionPaneUI extends BasicOptionPaneUI { 53 54 public static ComponentUI createUI(JComponent b) { 55 return new PlasticOptionPaneUI(); 56 } 57 58 62 protected Container createButtonArea() { 63 JPanel bottom = new JPanel (new ExtButtonAreaLayout(true, 6)); 64 bottom.setBorder(UIManager.getBorder("OptionPane.buttonAreaBorder")); 65 addButtonComponents(bottom, getButtons(), getInitialValueIndex()); 66 return bottom; 67 } 68 69 } | Popular Tags |