We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fb8396 commit 97ffacbCopy full SHA for 97ffacb
swingtest.java
@@ -0,0 +1,15 @@
1
+import javax.swing.*;
2
+import java.awt.*;
3
+
4
+public class swingtest {
5
+ public static void main(String[] args) {
6
+ //Create the frame.
7
+ JFrame frame = new JFrame("Test");
8
+ JPanel canvas = new JPanel();
9
+ canvas.setPreferredSize( new Dimension( 800, 600 ) );
10
+ frame.add(canvas);
11
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
12
+ frame.pack();
13
+ frame.setVisible(true);
14
+ }
15
+}
0 commit comments