Ticket #19319: 19319.patch

File 19319.patch, 1.1 KB (added by anonymous, 5 years ago)
  • src/org/openstreetmap/josm/gui/io/UploadDialog.java

     
    2929import javax.swing.AbstractAction;
    3030import javax.swing.BorderFactory;
    3131import javax.swing.JButton;
     32import javax.swing.JFrame;
    3233import javax.swing.JOptionPane;
    3334import javax.swing.JPanel;
    3435import javax.swing.JTabbedPane;
     36import javax.swing.SwingUtilities;
    3537
    3638import org.openstreetmap.josm.data.APIDataSet;
    3739import org.openstreetmap.josm.data.Version;
     
    404406                            new Dimension(400, 600)
    405407                    )
    406408            ).applySafe(this);
     409
     410            JFrame frame = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, this);
     411            frame.revalidate();
     412            frame.repaint();
     413
    407414            startUserInput();
    408415        } else if (isShowing()) { // Avoid IllegalComponentStateException like in #8775
    409416            new WindowGeometry(this).remember(getClass().getName() + ".geometry");