1 package org.columba.core.gui.themes.plugin; 19 20 import javax.swing.JComponent ; 21 import javax.swing.UIDefaults ; 22 import javax.swing.UIManager ; 23 import javax.swing.plaf.BorderUIResource ; 24 import javax.swing.plaf.ComponentUI ; 25 26 import net.javaprog.ui.wizard.plaf.metal.MetalWizardContentPaneUI; 27 import net.javaprog.ui.wizard.plaf.windows.WindowsStepDescriptionRenderer; 28 29 public class PlasticWizardContentPaneUI extends MetalWizardContentPaneUI { 30 public PlasticWizardContentPaneUI() { 31 UIManager.put(getPropertyPrefix() + "stepListRenderer", null); 32 UIManager.put(getPropertyPrefix() + "stepDescriptionRenderer", 33 new UIDefaults.ProxyLazyValue ( 34 WindowsStepDescriptionRenderer.UIResource.class 35 .getName())); 36 UIManager.put(getPropertyPrefix() + "stepBorder", 37 new BorderUIResource.EmptyBorderUIResource (12, 40, 11, 11)); 38 } 39 40 public static ComponentUI createUI(JComponent c) { 41 return new PlasticWizardContentPaneUI(); 42 } 43 } | Popular Tags |