class variable access from runnable
Can someone please clarify to me based on the following code: when a thread is launched will the class variables be accessible without the final key word?
Thanks
publicvoid updateTable()
{
Runnable runnable =new Runnable()
{
publicvoid run()
{
try{
if(index > -1 && isConsoleStopped()){//timer not stopped
//System.out.println("Timer stopped");
if (eventConsole !=null && eventConsole.getConsoleTimer() !=null)
eventConsole.getConsoleTimer().stop();
fireTableChanged(tme);
if (consoleTable ==null)return;
eventConsole.resetCurrentRow();
if(newEventPosition == EVENTS_ON_BOTTOM){
consoleTable.scrollRectToVisible(new Rectangle(0,
(getRowCount()*consoleTable.getRowHeight()),0,
consoleTable.getRowHeight()));
}
else{
consoleTable.scrollRectToVisible(new Rectangle(0,
consoleTable.getRowHeight(),0,
consoleTable.getRowHeight()));
}
}
}
catch (Exception e){
e.printStackTrace();
}
finally{
//System.out.println("Timer started");
//if (eventConsole != null && eventConsole.getConsoleTimer() != null)
eventConsole.getConsoleTimer().restart();
}
}
};

