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…..









Recent Comments