/[classpath]/classpath/javax/swing/DefaultCellEditor.java
ViewVC logotype

Diff of /classpath/javax/swing/DefaultCellEditor.java

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

revision 1.14 by langel, Wed Aug 24 20:37:37 2005 UTC revision 1.15 by langel, Tue Aug 30 20:05:58 2005 UTC
# Line 121  public class DefaultCellEditor Line 121  public class DefaultCellEditor
121       */       */
122      public boolean isCellEditable(EventObject event)      public boolean isCellEditable(EventObject event)
123      {      {
124        if (event == null || !(event instanceof MouseEvent))        if (event == null || !(event instanceof MouseEvent) ||
125              (((MouseEvent) event).getClickCount() >= getClickCountToStart()))
126          return true;          return true;
   
       //Todo: if the right number of clicks has occured, return true;  
127        return false;        return false;
128      } // isCellEditable()      } // isCellEditable()
129    
# Line 232  public class DefaultCellEditor Line 231  public class DefaultCellEditor
231    public DefaultCellEditor(JTextField textfield)    public DefaultCellEditor(JTextField textfield)
232    {    {
233      editorComponent = textfield;      editorComponent = textfield;
234      clickCountToStart = 2;      clickCountToStart = 3;
235    } // DefaultCellEditor()    } // DefaultCellEditor()
236    
237    /**    /**

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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