Changeset 4374
- Timestamp:
- 10/15/03 12:07:24 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/MenuItem.java
r3076 r4374 3 3 * 4 4 * Copyright (C) 1998-2003 Peter Graves 5 * $Id: MenuItem.java,v 1. 3 2003-07-25 17:47:12piso Exp $5 * $Id: MenuItem.java,v 1.4 2003-10-15 12:07:24 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 39 39 UIManager.getFont("MenuItem.acceleratorFont"); 40 40 private static final Color acceleratorForeground = 41 41 UIManager.getColor("MenuItem.acceleratorForeground"); 42 42 private static final Color acceleratorSelectionForeground = 43 43 UIManager.getColor("MenuItem.acceleratorSelectionForeground"); 44 private static final Color disabledForeground = 45 UIManager.getColor("MenuItem.disabledForeground"); 44 46 45 47 private final String acceleratorText; … … 67 69 if (acceleratorText != null) { 68 70 g.setFont(acceleratorFont); 69 g.setColor(getModel().isArmed() ? acceleratorSelectionForeground : acceleratorForeground); 71 Color c; 72 if (isEnabled()) 73 c = getModel().isArmed() ? acceleratorSelectionForeground : acceleratorForeground; 74 else 75 c = disabledForeground; 76 g.setColor(c); 70 77 FontMetrics fm = g.getFontMetrics(); 71 78 Insets insets = getInsets();
Note: See TracChangeset
for help on using the changeset viewer.