[java] Swing looks so cool
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.
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?
Also, are the features Java (1.?)6 supposed to have listed somewhere?
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
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
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
Kev
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.
easy to add it to Java.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement