I used a JButton as render and editor in JTable, with following problems:
Any help will be appreciated!
To display a button in a column you need to create:
Read the section from the Swing tutorial on How to Use Tables. The section on:
Using Custom Renders
will explain the basics of using a rendererUsing Other Editors
will explain the basics of using an editorWorking example are provided in the tutorial that you can download.
You can check out Table Button Column for one approach.
The code uses a single class to implement the custom renderer and editor that you will need for the column to display your text as a button.