jdk/src/share/classes/javax/swing/plaf/nimbus/Defaults.template
changeset 3928 be186a33df9b
parent 3093 3ae581eddd21
child 3932 c9cd7ff79037
equal deleted inserted replaced
3927:d717df90e151 3928:be186a33df9b
    24  */
    24  */
    25 package ${PACKAGE};
    25 package ${PACKAGE};
    26 
    26 
    27 import javax.swing.Painter;
    27 import javax.swing.Painter;
    28 import java.awt.Graphics;
    28 import java.awt.Graphics;
    29 import sun.font.FontManager;
    29 import sun.font.FontUtilities;
    30 import sun.swing.plaf.synth.DefaultSynthStyle;
    30 import sun.swing.plaf.synth.DefaultSynthStyle;
    31 import javax.swing.BorderFactory;
    31 import javax.swing.BorderFactory;
    32 import javax.swing.JComponent;
    32 import javax.swing.JComponent;
    33 import javax.swing.JInternalFrame;
    33 import javax.swing.JInternalFrame;
    34 import javax.swing.UIDefaults;
    34 import javax.swing.UIDefaults;
   136 
   136 
   137         //Create the default font and default style. Also register all of the
   137         //Create the default font and default style. Also register all of the
   138         //regions and their states that this class will use for later lookup.
   138         //regions and their states that this class will use for later lookup.
   139         //Additional regions can be registered later by 3rd party components.
   139         //Additional regions can be registered later by 3rd party components.
   140         //These are simply the default registrations.
   140         //These are simply the default registrations.
   141         defaultFont = FontManager.getFontConfigFUIR("sans", Font.PLAIN, 12);
   141         defaultFont = FontUtilities.getFontConfigFUIR("sans", Font.PLAIN, 12);
   142         defaultStyle = new DefaultSynthStyle();
   142         defaultStyle = new DefaultSynthStyle();
   143         defaultStyle.setFont(defaultFont);
   143         defaultStyle.setFont(defaultFont);
   144 
   144 
   145         //initialize the map of styles
   145         //initialize the map of styles
   146 ${STYLE_INIT}
   146 ${STYLE_INIT}