Content deleted Content added
Wael Ellithy (talk | contribs) m →The program: Fixing the code list |
Updated Sourcecode, less obscure, more modern. |
||
Line 13:
<pre>
import javax.swing.*;
public class HelloWorldSwing
{
/**
* Constructs a new Window
*/
public HelloWorldSwing()
{
//Sets the size and makes the window close when you press the X
setSize(500,500);
//
▲ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//
▲ frame.getContentPane().add(label);
}
/**
* Main Method
public static void main(String[] args) {▼
*/
{
new
▲ });
}
}
|