Frame1 and VScode extentions

This commit is contained in:
nzBryce101
2024-03-08 14:13:48 +13:00
parent ea577014ff
commit 806ecbea82
2 changed files with 26 additions and 0 deletions

5
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"recommendations": [
"vscjava.vscode-java-pack"
]
}

21
Frame1.java Normal file
View File

@@ -0,0 +1,21 @@
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Frame1 extends JFrame {
JPanel pane = new JPanel();
Frame1() {
super("My Simple Frame");
setBounds(100, 100, 300, 100);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container con = this.getContentPane();
con.add(pane);
// customiseations to be put here
setVisibile(true);
}
public static void main(String args[]) {
new Frame1();
}
}