First Size Calculating
This commit is contained in:
@@ -1,15 +1,25 @@
|
||||
package gui;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class ControlWindow {
|
||||
|
||||
private JFrame controlWindow;
|
||||
|
||||
public ControlWindow(){
|
||||
|
||||
controlWindow = new JFrame();
|
||||
controlWindow.setVisible(true);
|
||||
|
||||
controlWindow.getContentPane().setPreferredSize(new Dimension(400, 800));
|
||||
controlWindow.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
|
||||
controlWindow.setResizable(false);
|
||||
// controlWindow.set
|
||||
controlWindow.setLayout(null);
|
||||
|
||||
controlWindow.pack();
|
||||
controlWindow.setVisible(true);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user