Jump to content
  • Advertisement
Sign in to follow this  
someboddy

[java] Swing looks so cool

This topic is 4883 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Agreed, the graphics were the hardest. However, after you got it together, it's pretty
easy to add it to Java.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!