Problem in JTable
Page 1 of 12 Replies - 84 Views - Last Post: 07 February 2012 - 07:45 PM
Topic Sponsor:
#1
Problem in JTable
Posted 06 February 2012 - 10:10 PM
Hey, I Have a Jtable , I wan't to Hide that JTable When Opening that JFrame and , when a button press, I Want to display it to the user... How can I do this...? Plz Help me
Replies To: Problem in JTable
#2
Re: Problem in JTable
Posted 07 February 2012 - 03:59 AM
Use a CardLayout. Make the first card blank and go to a card containing the table on the button press
http://docs.oracle.c...ayout/card.html
http://docs.oracle.c...ayout/card.html
#3
Re: Problem in JTable
Posted 07 February 2012 - 07:45 PM
i'm not entirely sure what you want to do but you can make a frame or JPanel visibile or invisible by using the setVisible() method.
e.g.
Jframe f = new JFrame(); //declare frame --no need to do if you extend JFrame
f.setVisible(false); //hides the frame
if your JTable is within that frame or panel, it will no longer be visible.
e.g.
Jframe f = new JFrame(); //declare frame --no need to do if you extend JFrame
f.setVisible(false); //hides the frame
if your JTable is within that frame or panel, it will no longer be visible.
This post has been edited by jimmyo88: 07 February 2012 - 07:52 PM
Page 1 of 1
|
|

New Topic/Question
Reply





MultiQuote





|