Hi all,
I want to add a component into top-level container.
In here, I use JFrame as top-level container.
My understanding is there are 2 ways to do that..
1. I use JFrame method getContentPane().add(component);
2. Because of JFrame is subclass of java.awt.Containter, I can use JFrame method add(component) directly.
Is it true?
Are there performance effect between both?
thanks
daniel
I want to add a component into top-level container.
In here, I use JFrame as top-level container.
My understanding is there are 2 ways to do that..
1. I use JFrame method getContentPane().add(component);
2. Because of JFrame is subclass of java.awt.Containter, I can use JFrame method add(component) directly.
Is it true?
Are there performance effect between both?
thanks
daniel