Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JFrame and Frame

  Asked By: Darcy    Date: Jun 09    Category: Java    Views: 607
  

I would like to know the difference btw jframe and frame.
I am just starting reading about the graphical way in Java ( I know a
little about the the console way...), but in a book, they prent it
with JFrame, and in other Frame.
I have noticed some other like JButton and Button...

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Dannon Jones     Answered On: Jun 09

I don't know too much on this, but I know that the one that's just
Frame or Button, those images are rendered by java  through a call to
the native system. Meaning, the images (the picture of the button)
rendered is specific to the system you are compiling or executing
the code from. To put it simply, the button  image you create on a
Windows platform might look different than a Button image created on
a computer using a MacOS. This first one without the J is just by
java.awt part of the Heavyweight components.

However, if you use JFrame or JButton, then they should look and
feel the same no matter which OS you are using. These components
are accessed using javax.swing. They are called lightweight
components and unlike the AWT components there is no call to the
native system to render the image. These graphics are directly
rendered by java.

 
Answer #2    Answered By: Walborgd Fischer     Answered On: Jun 09

I get it:
using Swing composent, -----> JFrame, JButton
using AWT component, -----> Frame, Button

I am still reading  about the subject...

 
Didn't find what you were looking for? Find more on JFrame and Frame Or get search suggestion and latest updates.




Tagged: