Borders not showing on Textfield in Form [message #454219] |
Tue, 19 April 2005 06:27  |
Eclipse User |
|
|
|
Hello,
I created a simple View with a Form in it.
Example code:
public void createPartControl(Composite parent)
{
FormToolkit toolkit = new FormToolkit(parent.getDisplay());
Form form = toolkit.createForm(parent);
form.getBody().setLayout(new RowLayout());
toolkit.createText(form.getBody(), "TEST");
}
The text field is rendered without the black borders. Is this a bug or
am I missing something from my code?
When I add SWT.BORDER the field is rendered as in any other dialog.
SWT.FLAT does not solve the problem either!
I'm working on JDK1.5_02, Windows XP Professional SP 2, Eclipse 3.1M6
Any help greatly appreciated.
Thanks
Stefan Langer
|
|
|
Re: Borders not showing on Textfield in Form [message #454238 is a reply to message #454219] |
Tue, 19 April 2005 11:39  |
Eclipse User |
|
|
|
Try this question on eclipse.platform. FormToolkit is not part of SWT.
Thanks!
"Stefan Langer" <eclipse@bettsockentraeger.de> wrote in message
news:d42msr$i9a$1@news.eclipse.org...
> Hello,
>
> I created a simple View with a Form in it.
> Example code:
>
> public void createPartControl(Composite parent)
> {
> FormToolkit toolkit = new FormToolkit(parent.getDisplay());
> Form form = toolkit.createForm(parent);
> form.getBody().setLayout(new RowLayout());
> toolkit.createText(form.getBody(), "TEST");
> }
>
> The text field is rendered without the black borders. Is this a bug or
> am I missing something from my code?
> When I add SWT.BORDER the field is rendered as in any other dialog.
> SWT.FLAT does not solve the problem either!
>
> I'm working on JDK1.5_02, Windows XP Professional SP 2, Eclipse 3.1M6
>
> Any help greatly appreciated.
>
> Thanks
>
> Stefan Langer
|
|
|
Powered by
FUDForum. Page generated in 0.03230 seconds