Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 168108
Collapse All | Expand All

(-)nbproject/project.xml (+9 lines)
 Lines 108-113    Link Here 
108
                    </run-dependency>
108
                    </run-dependency>
109
                </dependency>
109
                </dependency>
110
                <dependency>
110
                <dependency>
111
                    <code-name-base>org.netbeans.modules.editor.lib2</code-name-base>
112
                    <build-prerequisite/>
113
                    <compile-dependency/>
114
                    <run-dependency>
115
                        <release-version>1</release-version>
116
                        <specification-version>1.11</specification-version>
117
                    </run-dependency>
118
                </dependency>
119
                <dependency>
111
                    <code-name-base>org.netbeans.modules.lexer</code-name-base>
120
                    <code-name-base>org.netbeans.modules.lexer</code-name-base>
112
                    <build-prerequisite/>
121
                    <build-prerequisite/>
113
                    <compile-dependency/>
122
                    <compile-dependency/>
(-)src/org/netbeans/modules/db/sql/editor/ui/actions/ConnectionAction.java (+10 lines)
 Lines 43-48    Link Here 
43
43
44
import java.awt.BorderLayout;
44
import java.awt.BorderLayout;
45
import java.awt.Component;
45
import java.awt.Component;
46
import java.awt.Container;
47
import java.awt.DefaultFocusTraversalPolicy;
46
import java.awt.Dimension;
48
import java.awt.Dimension;
47
import java.awt.event.ItemEvent;
49
import java.awt.event.ItemEvent;
48
import java.awt.event.ItemListener;
50
import java.awt.event.ItemListener;
 Lines 63-68    Link Here 
63
import org.netbeans.api.db.explorer.ConnectionListener;
65
import org.netbeans.api.db.explorer.ConnectionListener;
64
import org.netbeans.api.db.explorer.ConnectionManager;
66
import org.netbeans.api.db.explorer.ConnectionManager;
65
import org.netbeans.api.db.explorer.DatabaseConnection;
67
import org.netbeans.api.db.explorer.DatabaseConnection;
68
import org.netbeans.api.editor.EditorRegistry;
66
import org.netbeans.modules.db.api.sql.execute.SQLExecution;
69
import org.netbeans.modules.db.api.sql.execute.SQLExecution;
67
import org.openide.awt.Mnemonics;
70
import org.openide.awt.Mnemonics;
68
import org.openide.util.Lookup;
71
import org.openide.util.Lookup;
 Lines 151-156    Link Here 
151
            setLayout(new BorderLayout(4, 0));
154
            setLayout(new BorderLayout(4, 0));
152
            setBorder(new EmptyBorder(0, 2, 0, 8));
155
            setBorder(new EmptyBorder(0, 2, 0, 8));
153
            setOpaque(false);
156
            setOpaque(false);
157
            setFocusTraversalPolicyProvider(true);
158
            setFocusTraversalPolicy(new DefaultFocusTraversalPolicy() {
159
              @Override
160
              public Component getDefaultComponent(Container aContainer) {
161
                 return EditorRegistry.lastFocusedComponent();
162
              }
163
           });
154
164
155
            combo = new JComboBox();
165
            combo = new JComboBox();
156
            combo.addItemListener(new ItemListener() {
166
            combo.addItemListener(new ItemListener() {

Return to bug 168108
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo