my dog learned polymorphism*
The moose likes Other JSE/JEE APIs and the fly likes puzzled over java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "puzzled over java" Watch "puzzled over java" New topic

puzzled over java

joe tran

Joined: Aug 25, 2004
Posts: 7
I am rather new to java so I'm a little confused about a discovery I just made. I just bought a "java class library" reference book. And the code sample in there shows a code somthing like this:

public class main extends Frame{......

Well, all this time that I was learning java I noticed that almost all java classes start with a "J", in this case it would be "JFrame". But it's not. What exactly am I missing? Thanks to anyone with some hint to enlighten me.

Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
Frame starts in AWT which was the windows graphics libraries prior to the Swing lib. All swing objects start with J and normally extend the same awt class name without the J. The only time you would need the awt (non J components) is when building web applets that is used in browsers that do not have a java plugin that will support swing. I would recommend to just stick with the J classes if you are unfamiliar. Basically just remember J is for swing, no J is AWT

Jeremy Wilson
jQuery in Action, 2nd edition
subject: puzzled over java
Similar Threads
Java data type compatible to record in Delphi
JTable as User's input (?)
ddd and java
Separating SQL Code from CLASS
JForum database structure compatible with PHPBB?