• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Jtable problem

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.

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.
It will give me the powers of the gods. Not bad for a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic