Ignore:
Timestamp:
2018-08-13T02:18:54+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.parent and Main itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java

    r13849 r14153  
    3030import javax.swing.JTextField;
    3131
    32 import org.openstreetmap.josm.Main;
     32import org.openstreetmap.josm.gui.MainApplication;
    3333import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction;
    3434import org.openstreetmap.josm.gui.help.HelpUtil;
     
    120120    public void setVisible(boolean visible) {
    121121        if (visible) {
    122             WindowGeometry.centerInWindow(Main.parent, new Dimension(350, 300)).applySafe(this);
     122            WindowGeometry.centerInWindow(MainApplication.getMainFrame(), new Dimension(350, 300)).applySafe(this);
    123123        }
    124124        super.setVisible(visible);
Note: See TracChangeset for help on using the changeset viewer.