I'm just curious. Is there a way to access parent in anonymous class that is inside another anonymous class?
I make this example create a JTable
subclass (anonymous class) override changeSelection
and inside i create another anonymous class.
MCVE:
public class Test{
public static void main(String args []){
JTable table = new JTable(){
@Override
public void changeSelection(
final int row, final int column,
final boolean toggle, final boolean extend) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
super.changeSelection(row, column, toggle, extend);
//more code here
}
});
}
};
}//end main
}//end test
How can i refer to super.changeSelection(..)
?