Got an Idea….

5 12 2006

Well finally started up my project :) ….doesnt mean started writin the coding …..just got an idea about my project….te guy who told me everythin was indeed gud….gav me an clear idea of wat i am goin to do …..Well he thought me How LSB(Least Significant Bit) Algorithm should be used in my project to hide the text in an audio (wave)file….Now I hav got a crystal clear idea of wat should be done in my project :)….he was rele cool ….it seems like he graduated last yr and now hes workin dere…..

The GUI for my project should be done with Java Swing….So he thought me some basics in Java Swing….I hav asked him time for studyin Java Swing……Well for te next two days i hav to get to kno somethin about Swing…..Went thro te net got some idea about Swing…After learnin something abt Swing,I hav to meet him on thursday when he wil tell me wat r al te features I should hav in my GUI like frames, buttons etc….

Sample Code for HelloWorldSwing

import javax.swing.*;

public class HelloWorldSwing {

/**

* Create the GUI and show it. For thread safety,

* this method should be invoked from the

* event-dispatching thread.

*/

private static void createAndShowGUI() {

//Make sure we have nice window decorations.

JFrame.setDefaultLookAndFeelDecorated(true);

 

//Create and set up the window.

JFrame frame = new JFrame(”HelloWorldSwing”);

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

 

//Add the ubiquitous “Hello World” label.

JLabel label = new JLabel(”Hello World”);

frame.getContentPane().add(label);

 

//Display the window.

frame.pack();

frame.setVisible(true);

}

 

public static void main(String[] args) {

//Schedule a job for the event-dispatching thread:

//creating and showing this application’s GUI.

javax.swing.SwingUtilities.invokeLater(new Runnable() {

public void run() {

createAndShowGUI();

}

});

}

}

A Snap shot of te above Swing progrm…..

1helloworldswing3.gif


Actions

Information

11 responses to “Got an Idea….”

5 12 2006
dineshabe (19:58:08) :

one big help . am trying to tweek with swing . but got no idea where to get the package . i know a lil of programming in swing but need the package . pls send in mail .

8 12 2006
arun (00:10:59) :

hey dinesh , U dont need any spl package….
I compiled and run te above pgm in jdk1.5 ….its workin…

10 12 2006
vineha (20:45:18) :

hey how did u get the visitor thingie on ur blog.. have been trying to get it on mine… help!!!

15 12 2006
ebby (08:32:23) :

swing what swing :p

15 12 2006
arun (11:48:11) :

JAVA SWING….

16 12 2006
ebby (09:20:34) :

how much for a ride.?

16 12 2006
arun (10:33:55) :

very funny…poda…

16 12 2006
ebby (11:35:19) :

i want a ride .

22 12 2006
dineshabe (12:11:38) :

who is tat makin fun of the technology tat is moving the world now .

22 12 2006
dineshabe (12:12:26) :

linux is a kernel k .

28 12 2006
ebby (14:35:47) :

i just wanted it to move me . who is making fun (looking around .. )

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>