Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JFrame: Why Is A Container Necessary?

Skar.2007May 17 2024

JDK 21 | swing

Hello everyone.

If you can directly insert the Components (for example: JButton, JTextField,...) in a JFrame, why would it be necessary to previously insert a Container such as JPanel and only insert the Components on top of it?

Thank you very much already.

Comments
Post Details
Added on May 17 2024
1 comment
213 views