1//THIS IS A FIX OF THE ONE BY FRANCY FROG
2//THEY FIXED THEIRS
3import javax.swing.JFrame;
4
5public class example {
6 public static void main(String[] args){
7 JFrame frame = new JFrame();
8 frame.setSize(100,100);
9 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
10 frame.setTitle("Example Frame");
11 frame.setVisible(true);
12 }
13}
1import java.awt.*;
2import javax.swing.*;
3
4public class Screen{
5
6 private GraphicsDevice graphicsDevice;
7
8 public static void main(String[] args){
9
10 Screen screen = new Screen();
11 }
12 public Screen(){
13 Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
14 JFrame jFrame = new JFrame();
15
16 MakeDefaultScreen(jFrame,screenSize);
17
18 System.out.println("Program Started");
19 }
20 public void MakeDefaultScreen (JFrame jFrame,Dimension screenSize){
21 jFrame.setSize(screenSize.width,screenSize.height);
22 jFrame.setVisible(true);
23 jFrame.setResizable(true);
24 }
25}