123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
Why can not I mix AWT and Swing?

--------------------------------------------------------------------------------



There are findamental incompatibilities in the way they draw themselves.
AWT java classes are not "pure" Java classes, they use underlaying C/C++ native code (dependable on
operation system) that can cause different appearence in different OSs.
Swing is pure Java implementation and has no native code at all. Swing applications look the same.
> If there is a problem mixing swing and awt... what are the results,
> what can happen?
Some objects drawn on top of others are not properly occluded. This is most obvious with drop down
menus, which have a tendency to stay visible even after you have selected a menu item. Another
problem is that if you use AWT components on a JTabbedPane they will not disappear when you switch
tabs. There are many similar issues.
 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved copyright 123ENG