jdk/src/share/classes/javax/swing/plaf/synth/SynthInternalFrameTitlePane.java
changeset 23697 e556a715949f
parent 23010 6dadb192ad81
child 25100 d527cc827d7d
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    40  *
    40  *
    41  * @author David Kloba
    41  * @author David Kloba
    42  * @author Joshua Outwater
    42  * @author Joshua Outwater
    43  * @author Steve Wilson
    43  * @author Steve Wilson
    44  */
    44  */
       
    45 @SuppressWarnings("serial") // Superclass is not serializable across versions
    45 class SynthInternalFrameTitlePane extends BasicInternalFrameTitlePane
    46 class SynthInternalFrameTitlePane extends BasicInternalFrameTitlePane
    46         implements SynthUI, PropertyChangeListener {
    47         implements SynthUI, PropertyChangeListener {
    47 
    48 
    48     protected JPopupMenu systemPopupMenu;
    49     protected JPopupMenu systemPopupMenu;
    49     protected JButton menuButton;
    50     protected JButton menuButton;
   157             di.setComponentPopupMenu(null);
   158             di.setComponentPopupMenu(null);
   158         }
   159         }
   159         super.uninstallDefaults();
   160         super.uninstallDefaults();
   160     }
   161     }
   161 
   162 
       
   163     @SuppressWarnings("serial") // Superclass is not serializable across versions
   162     private static class JPopupMenuUIResource extends JPopupMenu implements
   164     private static class JPopupMenuUIResource extends JPopupMenu implements
   163         UIResource { }
   165         UIResource { }
   164 
   166 
   165     protected void assembleSystemMenu() {
   167     protected void assembleSystemMenu() {
   166         systemPopupMenu = new JPopupMenuUIResource();
   168         systemPopupMenu = new JPopupMenuUIResource();