Ignore:
Timestamp:
2017-05-12T20:18:02+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14741 - rework initialization of Main.contentPanePrivate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r12127 r12128  
    3838import javax.swing.JComponent;
    3939import javax.swing.JOptionPane;
    40 import javax.swing.JPanel;
    4140import javax.swing.KeyStroke;
    4241import javax.swing.LookAndFeel;
     
    208207
    209208    /**
     209     * The private content pane of {@code MainFrame}, required to be static for shortcut handling.
     210     */
     211    protected static JComponent contentPanePrivate;
     212
     213    /**
    210214     * The file watcher service.
    211215     */
     
    637641        }
    638642    }
    639 
    640     protected static final JPanel contentPanePrivate = new JPanel(new BorderLayout());
    641643
    642644    public static void redirectToMainContentPane(JComponent source) {
     
    770772        }
    771773        toolbar = new ToolbarPreferences();
    772         contentPanePrivate.updateUI();
    773774
    774775        UIManager.put("OptionPane.okIcon", ImageProvider.get("ok"));
Note: See TracChangeset for help on using the changeset viewer.