By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,947 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

Mixing AWT and Swing

P: n/a
Hello,

Does anyone already have some experience in mixing AWT and Swing? Is it
conceptually doable?
Does the design of Swing prevent interaction between an AWT and a Swing
widget?

Regards,
Alexandre

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
bergel wrote:
Hello,

Does anyone already have some experience in mixing AWT and Swing? Is it
conceptually doable?
Does the design of Swing prevent interaction between an AWT and a Swing
widget?


This is officially a "bad idea" as AWT components are heavyweight (i.e.
native) components and Swing components are lightweight components.

Of course, it is impossible to use Swing without using parts of the AWT
library. You just shouldn't use both types of components.

HTH,
Ray

--
XML is the programmer's duct tape.
Jul 17 '05 #2

P: n/a
Thanks very much for you quick answer. Actually, I should have tried
google before.
http://www.devx.com/tips/Tip/14718

Best Regards,
Alexandre

Jul 17 '05 #3

P: n/a
A much more substantial coverage of mixing AWT and Swing can be found here:

http://java.sun.com/products/jfc/tsc...ing/index.html

"bergel" <be****@iam.unibe.ch> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Thanks very much for you quick answer. Actually, I should have tried
google before.
http://www.devx.com/tips/Tip/14718

Best Regards,
Alexandre

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.