Link to home
Create AccountLog in
Avatar of Ghyths
Ghyths

asked on

What's the different if I add the component to the JFrame, or to the container of the JFrame

Hi Again,

Just I want to know the different between add a component to the JFrame using jFrame.add(), or to the container of the JFrame using jFrame.getContainer().add().

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Ghyths
Ghyths

ASKER

Thanks for zzunx and Thomas
You're welcome.
Thanx 4 axxepting