Is it possible to add some Menu type (drop down) or a menu item to the column header of JTable in Java swing?
If possible please tell me the approach that I can use.
Is it possible to add some Menu type (drop down) or a menu item to the column header of JTable in Java swing?
If possible please tell me the approach that I can use.
this is the example ...
Or..
take the table header by header = table.getTableHeader(). it return a component. You can add other components like buttons etc..and u can add component on this by header.add(/*component which u want to add*/)..
and u also need to set layout Before adding component:
ex: header.setLayout(new BorderLayout());