I’m trying (testing something else) to add one JButton reference into two JPanels to test it, and it disappears from the first panel it was added to!
So, can’t a Swing component be added to multiple containers?
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From: http://download.oracle.com/javase/tutorial/uiswing/components/toplevel.html: