jdk/src/share/classes/com/sun/java/swing/plaf/motif/MotifRadioButtonMenuItemUI.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
69 |
69 |
70 protected ChangeListener createChangeListener(JComponent c) { |
70 protected ChangeListener createChangeListener(JComponent c) { |
71 return new ChangeHandler(); |
71 return new ChangeHandler(); |
72 } |
72 } |
73 |
73 |
|
74 @SuppressWarnings("serial") // Same-version serialization only |
74 protected class ChangeHandler implements ChangeListener, Serializable { |
75 protected class ChangeHandler implements ChangeListener, Serializable { |
75 public void stateChanged(ChangeEvent e) { |
76 public void stateChanged(ChangeEvent e) { |
76 JMenuItem c = (JMenuItem)e.getSource(); |
77 JMenuItem c = (JMenuItem)e.getSource(); |
77 LookAndFeel.installProperty(c, "borderPainted", c.isArmed()); |
78 LookAndFeel.installProperty(c, "borderPainted", c.isArmed()); |
78 } |
79 } |