• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Table with CheckBoxes in JScrollpane

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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........
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
pothineni rajesh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@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
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you show us your test code?
 
pothineni rajesh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@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
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
whatever the code I sent was the shortest code and compilable one also.

Please have a look..
 
Maneesh Godbole
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok.
What exactly are you trying to do here?
 
pothineni rajesh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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



 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic