Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » problem with forms
problem with forms [message #464496] Wed, 23 November 2005 13:59
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all
hope this is the right forum to talk about that ....

i'm having problem with my example using forms ...
here is a little example ...

if you try the little bit it looks working fine ...
now if you remove from the stringbuffer all the "here" word (leave just one)
you can see that the size of the section has big enough to keep paint the
"create" word.
the description information (ie: Creates a command) will be splitted in two
rows :-(

i'm a doing something wrong?
i have tried even to use section .setLayoutData(new

force in the main container a grid layout with fill both property ... but
still no luck ?


Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION
Section.TITLE_BAR | Section.EXPANDED);
section.setDescription("Creates a command.");

StringBuffer buf = new StringBuffer();
buf.append("Here Here Here Here Here Here Here Here Here Here Here ");


FormText rtext = toolkit.createFormText(section, true);
rtext.setFont("header", JFaceResources.getHeaderFont());
rtext.setText(buf.toString(), true, false);
rtext.addHyperlinkListener(new HyperlinkAdapter() {
public void linkActivated(HyperlinkEvent e) {
System.out.println("Link active: "+e.getHref());

Previous Topic:HelloWorld standalone: No text on Buttons or Labels
Next Topic:Change background color for table cell
Goto Forum:

Current Time: Thu Oct 19 22:04:08 GMT 2017

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

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