View Single Post
  #1 (permalink)  
Old 06-12-2007, 01:29 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon13 Tutorial: How to create your first GUI

In this tutorial, you will learn on how to get started to create GUI Java application. However, before you get into GUI programming, make sure you understand the basics and fundamentals of Java command line programming, because it does will get more confusing..

PHP Code:
import javax.swing.JFrame;

public class myGUI extends JFrame {
     
public myGUI(String title) {
          
super(title);
          
setSize(500500); // set your GUI size
          
setVisible(true); // to set your GUI visibility to true
     
}

     
public static void main(String args[]) {
          new 
myGUI("The ProgrammersTalk Community");
     }

That will create the GUI frame with "The ProgrammersTalk Community" as the title

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote