The Artima Developer Community
Sponsored Link

Java Answers Forum
Swing vs. AWT

1 reply on 1 page. Most recent reply: Oct 3, 2003 7:23 PM by Clay Dagler

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Jipto

Posts: 1
Nickname: jipto
Registered: Oct, 2003

Swing vs. AWT Posted: Oct 3, 2003 4:24 PM
Reply to this message Reply
Advertisement
I am new JAVA UI developer.
If I am going to write an application that will run on Windows platform (assuming Windows 2000 or NT), which approach will be better: using SWING API or AWT API?

I create a window frame, which will have lots of text fields, where the user can enter data, and the data will be saved on the DB, thus it is like a Form (for example: 1040 tax forms). I heard that you don't want to mixmatch SWING and AWT in the same application, since it will hurt performance.

The problem is that the Form (which will be painted on the frame) is configurable. Thus there is a data file that will specify how the form should look like, what fields will be in the form, and where those fields should be located in the form, and the type of each field (text box, text label, drop down box, combo box, etc.)

My frustration came because it took a long time to paint the Form on the window frame, and it seemed that it needs to refresh itself several time (kinda like flickering) before the final painting, and then the user can start entering the data into the Form.

It run on Pentium III 700 Mhz DELL PC, w/ 256MB RAM.

Is there any suggestion, from source code design perspective, how to improve the performance of the GUI
(so that it won't flicker, and paint the Form much quicker)?

Do I need to switch the code to SWING?
Will SWING make it faster (drawing the window object faster on the screen)?


Clay Dagler

Posts: 21
Nickname: cdagler
Registered: Jul, 2003

Re: Swing vs. AWT Posted: Oct 3, 2003 7:23 PM
Reply to this message Reply
Swing is newer and has more features like tables.

Flat View: This topic has 1 reply on 1 page
Topic: calculate average of numbers Previous Topic   Next Topic Topic: Error accessing javax.ejb package.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use