| [news.eclipse.platform.swt] Re: disposing objects - again |
Thank you.
You did create it, so you need to dispose it. You can't create it within the statement because you can't find it. You need to create it assigned to a variable and then at the appropriate time using that variable dispose it.
ie:
Font f = new Font(...) gc.setFont(f);
and at appropriate point: f.dispose();
Rich
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/