update
This commit is contained in:
20
DEV.2.1/TP/TP2-CompGraphique/test.java
Normal file
20
DEV.2.1/TP/TP2-CompGraphique/test.java
Normal file
@@ -0,0 +1,20 @@
|
||||
import java.awt.BorderLayout;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JTextField;
|
||||
|
||||
|
||||
public class test {
|
||||
public static void main(String[] args) {
|
||||
JFrame f = new JFrame();
|
||||
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
|
||||
f.setLayout(new BorderLayout());
|
||||
JTextField tf = new JTextField();
|
||||
f.setSize(500, 300);
|
||||
f.setLocation(500,250);
|
||||
f.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user