I need to store a mouse click event whenever a user clicks on a table column for sorting.
I'm basically saving the MouseEven:
public void mouseClicked(MouseEvent e_)
I store e_ on a global variable so later I can fire that same event and sort the table to the previous user sort action.
But when I manually fire the previous stored mouse event the table does not get sorted.
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(_mouseEvent);
So basically this is how I want it to work. User clicks on a JTable column for sorting.
I store the created MouseEvent on a global variable. When the JTable gets re-created, I need it to be set to the previous sort action.
This is why I need to re-fire the stored MouseEvent but its not working. Any ideas?