I am trying to make a dynamic table that fetches data from a database and adds those data in separate rows..I want to add an extra cell with each row(dynamically) th
cell cann't nest two JComponents because default JComponent/JLabel (returns by Renderer) haven't implemented any LayoutManager in API (in compare with JFrame/JDialog... or JPanel), have to set proper LayoutManager (Grid/BoxLayout) and important is to override PrederredSize, don't do that, road to troubles
there are three ways
add JPanel with two JButtons as Renderer and Editor too (search here for RollOver effect for JButtons Component as renderers components)
use JCheckBox (built_in Boolean support for Renderer and Editor too)
use two JRadioButtons in ButtonGroup
with JRadioButton as Renderer and Editor too
(better, nicer, easier) with JRadioButtons in ButtonGroup as Renderer and JComboBox as Editor