Frame1 and VScode extentions
This commit is contained in:
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"vscjava.vscode-java-pack"
|
||||
]
|
||||
}
|
21
Frame1.java
Normal file
21
Frame1.java
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user