[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] repaint embedded AWT frame
|
I embed an AWT frame in an SWT composite with
Composite composite = new Composite(mainComposite, SWT.EMBEDDED |
SWT.BORDER);
Frame frame = SWT_AWT.new_Frame(composite);
Later I add a JPanel to the frame with
JPanel panel = getDymanicallyGeneratedPanel();
frame.add(panel);
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?
Thanks,
Simon Morris