Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2007, 06:17 AM
Member
 
Join Date: Jul 2007
Posts: 40
baltimore is on a distinguished road
differences: AWT and Swing
Hello, I am trying to find out the difference between AWT and Swing.
I read somewhere that the Swing components are implemented with absolutely no native code.
I could not understand the meaning of "native code".Can somebody explain its meaning?

Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-06-2007, 11:01 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
Native widgets are called peers. A java AWT component needs a peer to be shown on the screen. Lightweight, Swing (J prefix) components do not. However they must be shown in a top–level container (JApplet, JFrame, JWindow, etc) which does need a peer or native widget.
The AWT is the original abstract windowing tookit. The Swing set came out in j2se 1.2
You can find a lot of AWT code on the web, old applets and the like. Also, I think the mobile phone people use AWT. Swing is easier to use, has more options and is most common in use by developers. It is best not to mix the two. You can but there are some gotchas to be aware of.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences between constructor and method Java Tip Java Tips 0 12-19-2007 10:53 AM
AWT or Swing bugger AWT / Swing 4 11-22-2007 11:44 AM
differences between bytecode and executable code valery New To Java 1 08-04-2007 05:27 AM
differences between 2 dates cecily New To Java 1 08-02-2007 07:37 PM
map javax.swing.text.Element to javax.swing.text.View elizabeth New To Java 1 07-30-2007 09:02 PM


All times are GMT +3. The time now is 02:29 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org