JavaSpace
Would you like to react to this message? Create an account in a few clicks or log in to continue.

JavaSpace

JavaSpace is a forum were people can help others learn java. Also a place for tutorials. We do everything java!
 
HomePortalSearchLatest imagesRegisterLog in

 

 [Tut-Source code]-very easy swing into{Hello from JavaSpace

Go down 
AuthorMessage
JavaClaDZ
Admin
JavaClaDZ


Posts : 18
Join date : 2008-02-23
Age : 33

[Tut-Source code]-very easy swing into{Hello from JavaSpace Empty
PostSubject: [Tut-Source code]-very easy swing into{Hello from JavaSpace   [Tut-Source code]-very easy swing into{Hello from JavaSpace Icon_minitimeFri Apr 18, 2008 7:37 am

/**
*Avery simple intro to swing. instead of saying hello to the world, javaspace is saying hello *to all of you!! lol!
*/

Code:
import java.awt.*;
import javax.swing.*;
/**
*
*www.javaspace.board-directory.net
*swing intro very simple
*A Hello from javaspace
*
*/
public class helloFromJavaSpace
{
  public static void main (String args[])throws Exception
  {
    JFrame  frame = new JFrame("Hello from Javaspace");
    JLabel  label = new JLabel("javaspace.board-directory.net says Hello");
    Container pane = frame.getContentPane();// Get content pane
    pane.setLayout( new FlowLayout() );// Set layout manager
    pane.add( label  );// Add to pane
    frame.pack();
    frame.setVisible(true);
  }
}
Back to top Go down
https://javaspace.board-directory.net
 
[Tut-Source code]-very easy swing into{Hello from JavaSpace
Back to top 
Page 1 of 1
 Similar topics
-
» [TuT Source code] - if else statements
» [TuT- Source Code] Screen Capture Program
» Dont Have A Notepad or you want to use JavaSpace Text Editor

Permissions in this forum:You cannot reply to topics in this forum
JavaSpace :: JavaTutorial Index :: Tutorials-
Jump to: