The first step always in the beginning of learning language programming is "how to make Hello world". Why it must hello world??? not Hello Andi, Hello Dhimaz, Hai Vina???? I don't Know, But Every References that I've found, Just say that. Let's Practice about How to Make Hello World Program In java GUI Programming
We need to do in this way is downloading JDK from www.oracle.com. You can find it by your self. And then run the installation program and follow Instructions step to install that JDK. After installation process finished, We ready to make Java Program (Hello World)...
This is very basic programming way. You Must Understand About Source Code of Hello World program. Do it..!! And Learn It...
_____________________________________________________
import javax.swing.*;
public class Hello extends JFrame {
private JLabel LHello = new JLabel("Hello World");
private JPanel panel = new JPanel();
Hello() {
super("Making Hello World");
panel.setLayout(null);
setSize(300, 100);
setDefaultCloseOperation(EXIT_ON_CLOSE);
LHello.setBounds(60,20,160,25);
panel.add(LHello);
getContentPane().add(panel);
setVisible(true);
}
public static void main(String[] args) {
Hello frameKu = new Hello();
}
}
That's All About My Post In a title "Making Hello World In Java GUI"
We need to do in this way is downloading JDK from www.oracle.com. You can find it by your self. And then run the installation program and follow Instructions step to install that JDK. After installation process finished, We ready to make Java Program (Hello World)...
This is very basic programming way. You Must Understand About Source Code of Hello World program. Do it..!! And Learn It...
_____________________________________________________
import javax.swing.*;
public class Hello extends JFrame {
private JLabel LHello = new JLabel("Hello World");
private JPanel panel = new JPanel();
Hello() {
super("Making Hello World");
panel.setLayout(null);
setSize(300, 100);
setDefaultCloseOperation(EXIT_ON_CLOSE);
LHello.setBounds(60,20,160,25);
panel.add(LHello);
getContentPane().add(panel);
setVisible(true);
}
public static void main(String[] args) {
Hello frameKu = new Hello();
}
}
That's All About My Post In a title "Making Hello World In Java GUI"
1 comments:
hi am vivek
Post a Comment