[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Focus problems using swing in eclipse
|
Hi,
We are developing a plugin in eclipse. This plugin use
AWT/swing in one of the views. To integrate inside the SWT view we use
the following code:
composite = new Composite(getContainer(), SWT.NORMAL);
panel = new_Panel(composite);
panel.setLayout(new BorderLayout());
formPanel = new VCEPanel(); <----- This
is our JPanel swing class
formPanel.setFormViewEditor(this);
panel.add(formPanel, BorderLayout.CENTER);
Our JPanel have some JTextField widgets. We set the focus
in one of these widgets, and then resize the view. The focus is still in
the last widget that we set the focus, but if we try to select another
text field the focus is still owned by the initial widget (or still it's
painting it)...
How can we solve this problem?
Thank you in advance.