Author: oriol
Date: 2012-03-20 04:12:28 -0700 (Tue, 20 Mar 2012)
New Revision: 28589

Modified:
   
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/TaskDialog.java
Log:
Fix Bug #780. For any dialog, the button that has focus is set as a default 
button. Now, Enter Key will activate that button too

Modified: 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/TaskDialog.java
===================================================================
--- 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/TaskDialog.java
        2012-03-20 01:43:40 UTC (rev 28588)
+++ 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/TaskDialog.java
        2012-03-20 11:12:28 UTC (rev 28589)
@@ -254,6 +254,8 @@
        }
 
        void initComponents() {
+               //Set the button that has focus as default button. Thereby, 
enter key will activate that button.
+               UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE);
                initTextArea(descriptionLabel);
                initTextArea(descriptionLabel2);
                initTextArea(statusLabel);

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to