SonniE
10-29-2009, 06:17 PM
Shows a simple Gui Window.
http://www.fluidcoding.com/img/simpleGuiWindow.jpg
http://fluidcoding.com/javaSimpleGuiWindow.php
Heres Source:
/**
* Application: Simple Gui Window
* Author: Brian SonniE
* 18/10/09
* www.fluidcoding.com
*/
import javax.swing.*;
public class SimpleGui extends JFrame{
public SimpleGui()
{
// Set the title(Text on top)
setTitle("Simple Gui Window");
// Set The size (Width, Height) of the window.
setSize(400,200);
// Allow the program to close when the Exit Button is clicked.
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Make the Gui Visible.
setVisible(true);
}
public static void main(String[] args) {
// Create an instance of the SimpleGui Class.
SimpleGui Window = new SimpleGui();
}
}
http://www.fluidcoding.com/img/simpleGuiWindow.jpg
http://fluidcoding.com/javaSimpleGuiWindow.php
Heres Source:
/**
* Application: Simple Gui Window
* Author: Brian SonniE
* 18/10/09
* www.fluidcoding.com
*/
import javax.swing.*;
public class SimpleGui extends JFrame{
public SimpleGui()
{
// Set the title(Text on top)
setTitle("Simple Gui Window");
// Set The size (Width, Height) of the window.
setSize(400,200);
// Allow the program to close when the Exit Button is clicked.
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Make the Gui Visible.
setVisible(true);
}
public static void main(String[] args) {
// Create an instance of the SimpleGui Class.
SimpleGui Window = new SimpleGui();
}
}