This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jtable problem

 
Haris Tasawar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,
I am having trouble showing jtable on button click. Let me explain:

I have 2 buttons who specifically show 2 different tables on button:

1. 1st one (on click) shows the supplier information.
2. 2nd one (on click) show the product information.

The problem is whenever i click on any button for example the supplier button, it displays the respected Jtable, and when i click on the other button (i.e the product infor button) it displays the respected jtable also BUT when i click inside the table or highlight the implemented operation (i.e add,edit,delete) the values in the jtable changes to the previous Jtable values(supplier table) and the if i highlight the buttons they also change to the previous implementations of the buttons(add supplier,edit supplier, etc). i cant figure out how to solve this issue.
Is it happening because i am doing this on the same Jrame???

Please Help.

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> i cant figure out how to solve this issue.

find someone with a crystal ball, or post some code.

create a small demo program (one that compiles/runs)
just a frame, 2 buttons, 2 tables (1 row x 1 colum each),
and the code to add a supplier, and post that code here.

and, make sure it has the same problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic