I was reading the Swing tutorial at sun’s site and had a question regarding the advice given. In the tut it states that [quote] Programs should not, as a rule, use “heavyweight” components alongside Swing components.
[/quote]
My question is that if I am using AWT for the Graphics object and the Image class capabilities but use Swing for buttons and event handling then am I ok? Is invoking awt.Graphics or awt.bufferedImage creating heavyweight components? Am I just confusing two different aspects of AWT?
Relax. The “Heavyweights” are the AWT components that wrap native GUI objects (eg dialogs, buttons, lists)
If you stick to JFrame and the Swing GUI components you’ll be fine.
Thats what I thought, thanks.