/[classpath]/classpath/javax/swing/plaf/basic/BasicMenuItemUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicMenuItemUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by rabbit78, Tue Oct 25 13:49:47 2005 UTC revision 1.33 by langel, Tue Nov 1 15:39:41 2005 UTC
# Line 398  public class BasicMenuItemUI extends Men Line 398  public class BasicMenuItemUI extends Men
398     */     */
399    protected void installDefaults()    protected void installDefaults()
400    {    {
401      LookAndFeel.installBorder(menuItem, "MenuItem.border");      String prefix = getPropertyPrefix();
402      LookAndFeel.installColorsAndFont(menuItem, "MenuItem.background",      LookAndFeel.installBorder(menuItem, prefix + ".border");
403                                       "MenuItem.foreground", "MenuItem.font");      LookAndFeel.installColorsAndFont(menuItem, prefix + ".background",
404      menuItem.setMargin(UIManager.getInsets("MenuItem.margin"));                                       prefix + ".foreground", prefix + ".font");
405      acceleratorFont = UIManager.getFont("MenuItem.acceleratorFont");      menuItem.setMargin(UIManager.getInsets(prefix + ".margin"));
406      acceleratorForeground = UIManager.getColor("MenuItem.acceleratorForeground");      acceleratorFont = UIManager.getFont(prefix + ".acceleratorFont");
407      acceleratorSelectionForeground = UIManager.getColor("MenuItem.acceleratorSelectionForeground");      acceleratorForeground = UIManager.getColor(prefix + ".acceleratorForeground");
408      selectionBackground = UIManager.getColor("MenuItem.selectionBackground");      acceleratorSelectionForeground = UIManager.getColor(prefix + ".acceleratorSelectionForeground");
409      selectionForeground = UIManager.getColor("MenuItem.selectionForeground");      selectionBackground = UIManager.getColor(prefix + ".selectionBackground");
410      acceleratorDelimiter = UIManager.getString("MenuItem.acceleratorDelimiter");      selectionForeground = UIManager.getColor(prefix + ".selectionForeground");
411        acceleratorDelimiter = UIManager.getString(prefix + ".acceleratorDelimiter");
412        checkIcon = UIManager.getIcon(prefix + ".checkIcon");
413        
414      menuItem.setHorizontalTextPosition(SwingConstants.TRAILING);      menuItem.setHorizontalTextPosition(SwingConstants.TRAILING);
415      menuItem.setHorizontalAlignment(SwingConstants.LEADING);      menuItem.setHorizontalAlignment(SwingConstants.LEADING);
416      menuItem.setOpaque(true);      menuItem.setOpaque(true);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26