JList borders still visible on setVisible(false);
807601May 14 2008 — edited May 19 2008Hi, 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