File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
visualvm/core/src/com/sun/tools/visualvm/core/ui/components Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 42
42
import java .util .Map ;
43
43
import javax .swing .BorderFactory ;
44
44
import javax .swing .BoxLayout ;
45
- import javax .swing .ImageIcon ;
46
45
import javax .swing .JButton ;
47
46
import javax .swing .JCheckBox ;
48
47
import javax .swing .JComponent ;
49
48
import javax .swing .JPanel ;
50
49
import javax .swing .SwingUtilities ;
50
+ import org .openide .awt .CloseButtonFactory ;
51
51
import org .openide .util .NbBundle ;
52
52
53
53
/**
@@ -452,8 +452,9 @@ private void initComponents() {
452
452
setOpaque (true );
453
453
setBackground (DisplayAreaSupport .BACKGROUND_COLOR_NORMAL );
454
454
455
- ImageIcon closeIcon = new ImageIcon (DisplayArea .class .getResource ("/com/sun/tools/visualvm/core/ui/resources/closePanel.png" )); // NOI18N
456
- closeButton = new DisplayAreaSupport .ImageIconButton (closeIcon );
455
+ // ImageIcon closeIcon = new ImageIcon(DisplayArea.class.getResource("/com/sun/tools/visualvm/core/ui/resources/closePanel.png")); // NOI18N
456
+ // closeButton = new DisplayAreaSupport.ImageIconButton(closeIcon);
457
+ closeButton = CloseButtonFactory .createBigCloseButton ();
457
458
closeButton .setToolTipText (NbBundle .getMessage (DisplayArea .class , "ToolTip_Hide" )); // NOI18N
458
459
closeButton .addActionListener (new ActionListener () {
459
460
public void actionPerformed (ActionEvent e ) { getParent ().getParent ().setVisible (false ); }
You can’t perform that action at this time.
0 commit comments