[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Focus problems using swing in eclipse
|
THIS NEWSGROUP IS DEPRECATED.
Post this to eclipse.platform.swt.
Randy
"Jose Angel Flores" <jafloresg@xxxxxxxxxx> wrote in message
news:3EDF5344.D8CF9902@xxxxxxxxxxxxx
> 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.
>
>
>
>
>
>
>