File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes heavy wt components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "heavy wt components" Watch "heavy wt components" New topic

heavy wt components

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
can any body tell me which are heavy components (both in awt/and in swing)
examples please,as i was new to swing.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The four Swing Heavywieght containers are JApplet,JFrame,JDialog and JWindow
sridevi sangaiah

Joined: Mar 20, 2001
Posts: 19
All AWT components are heavyweight and all Swing components are lightweight (except for the top-level ones: JWindow, JFrame, JDialog, and JApplet)
Bharathi Balasubramanian

Joined: Jul 12, 2000
Posts: 26
how about JInternalFrame? Is't a HeavyWeight comp
[This message has been edited by Babu Bala (edited July 13, 2000).]

I got a flight to catch.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Not according to the docs - it's lightweight. Anyway, it's normally contained within a JDesktopPane (also lightweight) which in turn can be put inside one of the heavyweight components.

"I'm not back." - Bill Harding, Twister

Joined: Feb 18, 2000
Posts: 19
can anybody please tell me the way to differentiate between
light wt and heavy wt components?
I agree. Here's the link:
subject: heavy wt components
Similar Threads
why applet is heavy weight and swing is called light weight?
Interview questions
putting screen output inside scroll bar
Light and heavy weight
Canvas in JScrollPane