* improved auto-size/position

This commit is contained in:
Reinhard Pointner 2011-12-01 02:26:17 +00:00
parent 37527a8e8e
commit e63a37c6cc
1 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import static net.sourceforge.tuned.ui.TunedUtilities.*;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.io.File;
@ -94,8 +95,8 @@ class ValidateDialog extends JDialog {
installAction(content, KeyStroke.getKeyStroke("released ESCAPE"), cancelAction);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setLocationByPlatform(true);
setSize(365, 280);
setMinimumSize(new Dimension(365, 280));
pack();
}
@ -171,6 +172,7 @@ class ValidateDialog extends JDialog {
}
ValidateDialog dialog = new ValidateDialog(getWindow(parent), invalidFilePaths);
dialog.setLocation(getOffsetLocation(dialog.getOwner()));
// show and block
dialog.setVisible(true);