[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] SWT/Swing integration flickering problem
|
I am integrating existing Swing gui into Eclipse plugin - therefore i use
the
SWT_AWT.new_Frame() method to gain java.awt.Frame class and add swing
component to it.
This is the code of the eclipse plugin view:
public class ETL4ALLWorkerView extends ViewPart {
public static final String ID = "EclipsePluginETL4ALL.WorkerView";
Frame frame;
Composite swt_frame;
Canvas canvas;
public ETL4ALLWorkerView() {
super();
}
public void createPartControl(Composite parent) {
swt_frame = new Composite(parent, SWT.EMBEDDED | SWT.NO_REDRAW_RESIZE);
frame = SWT_AWT.new_Frame(swt_frame);
TransformClient clientFrame = null;
if((clientFrame = Perspective.getETL4ALLMainFrame()) == null){
clientFrame = TransformClient.plugin_main();
Perspective.setETL4ALLMainFrame(clientFrame);
}
//The following is a JDesktopPane that i use to add JInternalFrames to:
WorkerPanel workerPane = clientFrame.getWorkerPane();
frame.setBackground(new Color(180,70,220));
frame.add(workerPane);
public void setFocus() {
}
}
I am trying to add the swing JDesktopPane to java.awt.Frame .The
JDesktopPane includes
JInternalFrame.The problem is that the GUI is flickering when resized or
moved.
I migrated from jre1.4 to jre1.5 and the flickering of the JDesktopPane
stops but the
JInternalFrame is still flickering when resized/moved.I am wondering if at
this point this is
a SWT/Swing integration issue or AWT/Swing issue.