aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes checkbox Table problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "checkbox Table problem" Watch "checkbox Table problem" New topic
Author

checkbox Table problem

Diwakar Chittora
Greenhorn

Joined: Aug 20, 2007
Posts: 23
Hi friends,
I am struggling with a jcheckbox table functionality , saw some posts and tried to implement it .
i need a functionality which is like this:
1. if i select all the all the individual records of the table then header table (checkbox) should be shown as checked
2. If after disselecting any of the rows the table header ,header checkbox should be shown as disable.

Code i have implemented is shown below . if any one expert knows do add the required code to the comments shown in the code ,do let me know


[RP]Added code tags[/RP]

[ September 11, 2008: Message edited by: Rob Prime ]

[ September 11, 2008: Message edited by: Rob Prime ]
[ September 11, 2008: Message edited by: Bear Bibeault ]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10245
    
    8

1) Please use CODE tags. It makes the code readable and understandable for others.
2) What is this : import sun.java2d.loops.RenderCache;
[ September 11, 2008: Message edited by: Maneesh Godbole ]

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Diwakar Chittora
Greenhorn

Joined: Aug 20, 2007
Posts: 23
hi manish ,
next time i will keep a note of that .. today i got the solution of that .. thanks for your interest .

bbye
Diw
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

Care to share that solution for other ranchers who may have the same problem?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sharad Kharya
Ranch Hand

Joined: Oct 15, 2008
Posts: 68
@Diwakar

Can you please update the code which you had implemented to select header checkbox if all the checkbox gets selected one by one.
I am trying hard to implement tha same thing... but didnt find any solution for this.

Thanks In Advance
Sharad
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

Sharad, please Don't Wake The Zombies. This thread hasn't had a reply for nearly 6 months, and Diwara hasn't been active for 3 months.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: checkbox Table problem