Hi,
I just decided to learn java, so I'm quite a noob.
I use the book learning java third edition.
have JDK 1.6
program in notepad.
I have made the simple HelloJava example, and now i wanted to make the one in the frame. but when i try to compile the .java file i get following error:
C:\Program Files\Java\JDK1.6.0_05\bin>javac HelloJava.java (the file is located in the bin map)
HelloJava.java:5: cannot find symbol
symbol : class JFrame
location: class HelloJava
Jframe frame = new JFrame ("Hello, Java!")
^
1 error
and it doesn't compile
here is the piece of code in de .java file
import javax.swing.*;
public class HelloJava {
public static void main(String[] args) {
JFrama frame = new JFrame( "Hello, Java!" );
JLabel label = new JLabel("Hello, Java!", JLabel.CENTER );
frame.add( label );
frame.setsize ( 300, 400 );
frame.setVisible( true );
}
}
I hope you can help this beginner out ty already