Changeset 16435 in josm for trunk/src


Ignore:
Timestamp:
2020-05-17T10:02:34+02:00 (4 years ago)
Author:
simon04
Message:

fix #18975 - NoteInputDialog: remember windows geometry

File:
1 edited

Legend:

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

    r12280 r16435  
    55
    66import java.awt.Component;
     7import java.awt.Dimension;
    78
    89import javax.swing.BoxLayout;
     
    1213import javax.swing.JScrollPane;
    1314
     15import org.openstreetmap.josm.gui.util.WindowGeometry;
    1416import org.openstreetmap.josm.gui.widgets.JosmTextArea;
    1517import org.openstreetmap.josm.tools.ImageProvider;
     
    3335    public NoteInputDialog(Component parent, String title, String buttonText) {
    3436        super(parent, title, buttonText, tr("Cancel"));
     37        setRememberWindowGeometry(getClass().getName() + ".geometry",
     38                WindowGeometry.centerInWindow(MainApplication.getMainFrame(), new Dimension(400, 300)));
    3539    }
    3640
Note: See TracChangeset for help on using the changeset viewer.