Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Borders not showing on Textfield in Form
Borders not showing on Textfield in Form [message #454219] Tue, 19 April 2005 10:27 Go to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
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 15:39 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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
Previous Topic:Mac OS X 10.3.9 and MouseEvent
Next Topic:Unable to vertically center a Label
Goto Forum:
  


Current Time: Wed Apr 24 23:54:37 GMT 2024

Powered by FUDForum. Page generated in 0.02378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top