Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to assign the JPanel to JTable cell? [duplicate]

Tags:

java

swing

jpanel

Possible Duplicate:
How to assign the auto complete text field to JTable cell?

I have created a class for auto complete text fields.

I want to use that class and try to include my JTable cell fields, add that controls to one panel but it won't display. please advice

like image 909
kanna Avatar asked Dec 16 '25 22:12

kanna


1 Answers

You need a cellrenderer and so...

Here is an example for using a JPanel in a JTable cell.

like image 92
Chris S. Avatar answered Dec 19 '25 12:12

Chris S.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!