Originally posted by sahitya sahitya:
I used JTable for displaying the list of items. My application will perform some action when the user clicks on any one of the items in the list.
I need to disable the table list when the user clicks on one of the buttons available in the GUI. There shouldn't be any mouse click events on the table list after I press the button and also no action should be taken.
How can I do that??
I used JTable.setEnable(false). Its not working.
How about using a boolean class that the Table's mouselistener uses to determine if the mouse click will do anything.
Something like so: