2 Replies - 84 Views - Last Post: 07 February 2012 - 07:45 PM Rate Topic: ***-- 2 Votes

Topic Sponsor:

#1 sandaruwanc  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 31-August 11

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 :helpsmilie:
Is This A Good Question/Topic? 0
  • +

Replies To: Problem in JTable

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 1413
  • View blog
  • Posts: 6,037
  • Joined: 20-September 08

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
Was This Post Helpful? 1
  • +
  • -

#3 jimmyo88  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 126
  • Joined: 27-February 11

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. :)

This post has been edited by jimmyo88: 07 February 2012 - 07:52 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1