posted 21 years ago
Hi all
I have a method that creates a JFrame, within this is a button that has an anonymous inner class that disposes of the frame. The JFrame has to be final so it can be referenced in the anonymous inner class, what are the consequences of having a JFrame final?
I suspect not much as it only makes the reference to the JFrame constant. Is this correct?
Thanks
Adam Till<br />SCJP SCJD SCWCD