Swing components in Java are very flexible. You can change the table header of a JTable to become a JButton to display the headers as clickable. The class PushtableTableHeader does just that. See the code below.

To use the class, you can do it like this.

I purposely placed this in a class so that I could isolate only table columns that need to have a pushable button as its header.

These two functions for getting and setting a radio button using Javascript regardless of how many radio buttons there are in the group is shorter and simpler than the functions I posted before. The functions below came from this site.

Related Posts Plugin for WordPress, Blogger...