File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
visualvm/core/src/com/sun/tools/visualvm/core/ui Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ private static boolean isWindowsLaF () {
89
89
90
90
tabpane = TabbedPaneFactory .createCloseButtonTabbedPane ();
91
91
tabpane .setTabLayoutPolicy (JTabbedPane .WRAP_TAB_LAYOUT );
92
+
93
+ // GH-52 - true would break Tab navigation
94
+ tabpane .setFocusCycleRoot (false );
92
95
93
96
// Clear default border for fill up the entire DataSourceWindow
94
97
tabpane .setOpaque (false );
Original file line number Diff line number Diff line change @@ -455,6 +455,7 @@ private void initComponents() {
455
455
// ImageIcon closeIcon = new ImageIcon(DisplayArea.class.getResource("/com/sun/tools/visualvm/core/ui/resources/closePanel.png")); // NOI18N
456
456
// closeButton = new DisplayAreaSupport.ImageIconButton(closeIcon);
457
457
closeButton = CloseButtonFactory .createBigCloseButton ();
458
+ closeButton .setFocusable (true ); // GH-52 - enable closing the view using keyboard
458
459
closeButton .setToolTipText (NbBundle .getMessage (DisplayArea .class , "ToolTip_Hide" )); // NOI18N
459
460
closeButton .addActionListener (new ActionListener () {
460
461
public void actionPerformed (ActionEvent e ) { getParent ().getParent ().setVisible (false ); }
You can’t perform that action at this time.
0 commit comments