Ok,
I read other posts on the same topic, but i didn't get what i exactly wanted..
1- i want to add JCheckboxes in one of the JTable columns
2- i want to handle events for it.. e.g adding new row when checkbox is clicked etc
I referred the java docs, while adding the Boolean to a column makes checkboxes appear in the column, but they don't work!(they don't change state marked/unmarked) Also tried creating own TableModel extending AbstractTableModel and adding CellRenderer but then the checkboxes disappear and a string true/false is displayed in it.. There's something i'm missing out, can someone give me a direction..please
ksj 0
Newbie Poster
Recommended Answers
Jump to PostHave a look at
http://download.oracle.com/javase/tutorial/uiswing/components/table.html#renderer
in particular the section "Using Other Editors" that starts quite near the bottom...
All 3 Replies
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
ksj 0
Newbie Poster
mKorbel 274
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.