Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Info-Field inside a form
Info-Field inside a form [message #1067979] Thu, 11 July 2013 14:10 Go to next message
Mirjam B. is currently offline Mirjam B.Friend
Messages: 8
Registered: June 2013
Junior Member

which field should I use for an info text inside a form? It should not be editable, but support multiline texts. The LabelField didn't work for me.

Thanks for your suggestions Smile
Re: Info-Field inside a form [message #1068024 is a reply to message #1067979] Thu, 11 July 2013 17:57 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1194
Registered: October 2011
Senior Member
I use an HtmlField on top of my form. It works nice with Swing (I am not sure of the behaviour with SWT).

Notice that you can also use basic HTML in the LabelField with Swing (this produces multiline text). This do not work with SWT.

public class InfoField extends AbstractLabelField {

  protected int getConfiguredGridW() {
    return 2;

  protected int getConfiguredGridH() {
    return 2;

  protected boolean getConfiguredLabelVisible() {
    return false;

  protected void execInitField() throws ProcessingException {
    setValue("<html>Please <b>select</b> one of the questions.<br>And use the context menu.</html>");

Previous Topic:Accessing startup parameters
Next Topic:Drag and Drop TransferType issue?
Goto Forum:

Current Time: Tue Oct 25 05:19:57 GMT 2016

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

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