| Author |
Table with CheckBoxes in JScrollpane
|
pothineni rajesh
Greenhorn
Joined: Dec 17, 2008
Posts: 18
|
|
I have a table with CheckBoxes in the first column and added that table to JScrollPane. When I scrolldown the CheckBox value showing as false in the console but in the UI I am getting CheckBox with checked. Anyone ever faced this kind of issue??? Please suggest some solution........
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8563
|
|
Originally posted by pothineni rajesh: .. value showing as false in the console but in the UI I am getting CheckBox with checked.... Please suggest some solution........
What console is this? How is the console picking and displaying the values? Check your table model for the actual values. Are the correctly represented in the model?
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
pothineni rajesh
Greenhorn
Joined: Dec 17, 2008
Posts: 18
|
|
@Maneesh thanks for your reply.. console wich i mentioned is websphere client console,in the model i am getting correct values only but the checkbox was checked.
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8563
|
|
|
Can you show us your test code?
|
 |
pothineni rajesh
Greenhorn
Joined: Dec 17, 2008
Posts: 18
|
|
@Maneesh, Hope you have enough patience to see our code. problem is first I checked the CheckBox at(0,0) then checkbox at(1,3) will be checked. next when I put cursor on checkBox at(2,0) then the checkBox at(1,3) check was disappered. Please have a look at the code
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8563
|
|
Originally posted by pothineni rajesh: Hope you have enough patience to see our code.
I think you are kidding. Post a SSCCE code (http://mindprod.com/jgloss/sscce.html)
|
 |
pothineni rajesh
Greenhorn
Joined: Dec 17, 2008
Posts: 18
|
|
whatever the code I sent was the shortest code and compilable one also. Please have a look..
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8563
|
|
Ok. What exactly are you trying to do here?
|
 |
pothineni rajesh
Greenhorn
Joined: Dec 17, 2008
Posts: 18
|
|
Hi, I am trying to do some thing like the following checkBoxGroup1 2008 MK checkBoxsubGroup1 2008 MK checkBoxGroup2 2008 MP checkBoxsubGroup2 2008 MP checkBoxsubGroup2 2008 MP I want to design the checkboxes like groups and subgrouops if I clicked on the checkBoxGroup1 then corresponding subgroup1 should be selected,and so on.. now the problem is when clicking on checkBoxGroup1 then checkBoxsubgroup1 was selected properly.If I move my mouse to checkboxGroup2 then my checkBoxsubgroup1 was unchecked. Please try to compile the posted code you will know it clearly.. Please help me it's very urgent
|
 |
 |
|
|
subject: Table with CheckBoxes in JScrollpane
|
|
|