[java] Swing looks so cool

Started by
7 comments, last by kingaschi 18 years, 10 months ago
I just switched my game from awt to swing, to try and solve some text displaying problems. I thought swing is just for making your programs more platform independed. I didn't know it look so good. Those metal looking buttons just look great. And the most important thing, the text is finnaly displayed right. Once, I was one of those fools who prefer awt for it's speed. I have made the right choice, and I hope the rest of awt programers will follow.
-----------------------------------------Everyboddy need someboddy!
Advertisement
It's even faster if you use the lastest dev build of Java 6
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson
I've never really understood this "AWT vs. Swing" thing. As far as I know, AWT is mostly used for general graphics: lines, circles, squares, sprites, etc. Swing on the other hand is for application GUIs: windows, scroll bars, and placement of images (JPanels). For my applications graphics are done with AWT and are displayed in GUIs made with Swing. I use AWT AND Swing (though I will point out that I use Java 1.5 and only have about a year of Java experience, if that has something to do with the "controversy").

Also, are the features Java (1.?)6 supposed to have listed somewhere?
Actually, AWT is much, much slower than Swing. (at least with newer Java anyway)
Yes, you can define your own look and feel really easy too. All you see below is
implemented in Swing, just put some nice images (incl. rollover) into the corresponding
JButtons and JPanels:

http://www.aevumobscurum.com/original/image/screenshots/screenshot20.png
Play Aevumobscurum - http:/www.aevumobscurum.com
AWT is based on native components, Swing uses AWT to draw its own components. Every AWT component has a "native peer" which is a window manager resource. In AWT a Button transated into an actual native button resource. In Swing a JButton translated into a native "Window" which is drawn on to show the button.

Kev
You can check out all things mustang here.
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson
Quote:Original post by kingaschi
Yes, you can define your own look and feel really easy too. All you see below is
implemented in Swing, just put some nice images (incl. rollover) into the corresponding
JButtons and JPanels:

http://www.aevumobscurum.com/original/image/screenshots/screenshot20.png


I wouldn't say it's easy, I think it's alot of work!
Agreed, the graphics were the hardest. However, after you got it together, it's pretty
easy to add it to Java.
Play Aevumobscurum - http:/www.aevumobscurum.com

This topic is closed to new replies.

Advertisement