Adjust SystemInfoTestDialog size same as MainFrame

This commit is contained in:
RememBerBer 2021-12-24 09:15:36 +08:00
parent edad5ecbf6
commit c43892a0bb
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class SystemInfoTestDialog extends JDialog {
public SystemInfoTestDialog() {
super(App.mainFrame, "System Info Test");
ComponentUtil.setPreferSizeAndLocateToCenter(this, 0.6, 0.64);
ComponentUtil.setPreferSizeAndLocateToCenter(this, App.mainFrame.getWidth(), App.mainFrame.getHeight());
setContentPane(contentPane);
setModal(true);
getRootPane().setDefaultButton(buttonOK);