A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Feb 17, 2009
May 29, 2009 03:30:25
Please can you tell me how i can use a custom CheckBox . and what is the code.
i want to put custom checkbox in My Jtree.
Thanks & Regards,
Joined: Jul 26, 2007
May 29, 2009 04:14:29
Like the JList and JTable, JTrees also use Renderers. You will need to provide a custom renderer which renders the required nodes as JCheckboxes instead of JLabels, which are the default.
How to ask questions
Donate a pint, save a life!
Onff-turn it on!
Joined: Jun 09, 2003
May 29, 2009 04:44:23
did you get your checkbox in a JTable here?
Joined: Oct 27, 2005
May 29, 2009 11:54:30
You'll probably also have to handle the mouse clicks on the check boxes manually.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Custom CheckBox
logic problem or thread problem?
how to put images on displaytags column header????
Nested JSP Expressions not working
Nest the selectOneRadio Under the selectManyCheckbox
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014