Skip to Main Content

New to Java

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!

JList borders still visible on setVisible(false);

807601May 14 2008 — edited May 19 2008
Hi, I am new to java and swing. Using netbeans, added a JList, JButton to JFrame. added a button and wrote code as below to the actionPerformed event.

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jList1.setVisible(false);
}

But on pressing the button, Jlist object becomes gray visually, but the borders are still visible.. Is there any way that i can hide the Jlist properly?
thanks in advance.

-se.srikanth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2008
Added on May 14 2008
9 comments
1,866 views