Leonardo Buzinskas

Greenhorn
+ Follow
since Mar 16, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leonardo Buzinskas

Maaaany thanks!!!

Problem Solved with your information!

Below the class that saved me...lol


13 years ago
Hi everybody,

I have a Vector that feeds my JTable. This table has some columns, but the problem is that these columns have different objects, like strings, booleans, integers, and so on.
My ideia is to insert a checkbox in boolean type cells, and insert a combobox in some cells that I choose. (my table is editable)

I developed something here (posted below), that seems to work parcially.


When I start my app the checkbox don't appear, it only happens after clicking, how can I solve this?
As per you can see in my code, I try to attribute values for the checkbox and to the textfields, but when I click in the cell, they are shown as default, check box as false and textfield empty. Any ideia how to fix it?

All this doens't happen in a Standard JTable, with only one type of object per column.


And how can I somehow insert a component into a cell and let other column cells as ordinary cells, not as JTextFields for exemple ?



Here my TableCellEditor code:



13 years ago