Hey Developers,

Today is my first day trying to write a Java Application. I have a book that
somewhat walks me through the initial process. However, after I typed in
the code that was listed in the book it does not print the, "HelloJava" message
to the screen. They have a screen shots in the book showing the small app
should look like. My app looks exactly like it expect for the fact that it
doesn't print the message. The code is as follows:

public class HelloJava1 extends javax.swing.JComponent {

public static void main(String[] args) {
javax.swing.JFrame f = new javax.swing.JFrame("HelloJava1");
f.setSize(300, 300);
f.getContentPane().add(new HelloJava1( ));
f.setVisible(true);
}

public void paintComponent(java.awt.Graphics g) {
g.drawString("Hello, Java!", 125, 95);
}
}

Thanks in advance for your responses,
eejay