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

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

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

revision 1.7 by mkoch, Thu Dec 23 10:34:28 2004 UTC revision 1.8 by rabbit78, Wed Apr 20 13:49:09 2005 UTC
# Line 157  public class BasicButtonListener Line 157  public class BasicButtonListener
157        {        {
158          AbstractButton button = (AbstractButton) e.getSource();          AbstractButton button = (AbstractButton) e.getSource();
159          ButtonModel model = button.getModel();          ButtonModel model = button.getModel();
160          if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0)          if (e.getButton() == MouseEvent.BUTTON1)
161            {            {
162              // It is important that these transitions happen in this order.              // It is important that these transitions happen in this order.
163              model.setArmed(true);              model.setArmed(true);
# Line 179  public class BasicButtonListener Line 179  public class BasicButtonListener
179        {        {
180          AbstractButton button = (AbstractButton) e.getSource();          AbstractButton button = (AbstractButton) e.getSource();
181          ButtonModel model = button.getModel();          ButtonModel model = button.getModel();
182          if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) != 0)          if (e.getButton() == MouseEvent.BUTTON1)
183            {            {
184              // It is important that these transitions happen in this order.              // It is important that these transitions happen in this order.
185              model.setPressed(false);              model.setPressed(false);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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