chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1500253 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
Date Sat, 06 Jul 2013 12:50:41 GMT
Author: fmui
Date: Sat Jul  6 12:50:41 2013
New Revision: 1500253

URL: http://svn.apache.org/r1500253
Log:
Workbench: minor clean up

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java?rev=1500253&r1=1500252&r2=1500253&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java
Sat Jul  6 12:50:41 2013
@@ -101,9 +101,9 @@ public abstract class ActionPanel extend
 
         createActionComponents();
 
-        JButton deleteButton = new JButton(buttonLabel);
-        deleteButton.addActionListener(this);
-        add(deleteButton, BorderLayout.PAGE_END);
+        JButton actionButton = new JButton(buttonLabel);
+        actionButton.addActionListener(this);
+        add(actionButton, BorderLayout.PAGE_END);
 
         setMaximumSize(new Dimension(Short.MAX_VALUE, getPreferredSize().height));
     }
@@ -117,6 +117,7 @@ public abstract class ActionPanel extend
     public void actionPerformed(ActionEvent e) {
         try {
             setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
+            ((JButton) e.getSource()).requestFocusInWindow();
             if (doAction()) {
                 model.reloadObject();
             }



Mime
View raw message