Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why I populate 2 times the same jTable  RSS feed

Tomas Reyes
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made 4 jtables with jradio buttons inside, every selected row filter the content of the next jtable. I can't find why I populate the subfamily jtable with 2 recordsets at the same time. For example, when I select "03 acero" family it filter the subfamily than start with "03". When I run and select one family (for example "21 other", with the jradiobutton) populate the subfamily with the filter, but when I try to select one row of the jtable subfamily. Show me the rows of the first family filter ("03 acero").

My main code is:

My class than fill other Jtable (Subfamily) is :

When I use draw() and remove() inside

new SubFamTabla().initUISubF(Global.gFam);

it works fine, but the radio buttons don't select only one option.

My table structure is:

create table fammat_Familias (
clave_familia char(2),
descripcion_familia varchar(100));

create table fammat_SubFamilias (
clave_Subfamilia char(2),
descripcion_Subfamilia varchar(50));

Thanks in advance
Greg Charles
Posts: 3015
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tomas,

I have to direct you to our FAQ entry at IsolateTheProblem (⇐Click)

From that page, "When you have a 100 line program that doesn't work as expected, very few people are going to read through all those lines to help you find the problem." You've posted 2,000 lines of code, so that reduces "very few people" to "almost nobody", or in the harsh, though pithy language of the web, "tl;dr". Can you try to find a smaller example that demonstrates the problem you are having? I'm sure a lot of people will be able to offer some advice then.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!