[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: repaint embedded AWT frame
|
On Fri, 17 Jun 2005 11:39:03 +0000 (UTC), not@xxxxxxxxxxxxx (Volker
Pilz) wrote:
>Simon Morris wrote:
>
>> and at this stage I want to force a repaint so that I see the new
>> JPanel. I was hoping that some combination of composite.redraw(),
>> frame.repaint(), or frame.invalidate() would do this, but the only way
>> I've found is to resize the composite, which isn't very satisfactory.
>> Can anyone suggest a way to force a repaint more directly?
>
>I had the same Problem. Try the following:
>composite.setVisible(false);
>[your code for update the content]
>composite.setVisible(true);
>
>This works fine for me.
>
That solves my problem - thanks very much.
Simon Morris