Skip to main content



      Home
Home » Newcomers » Newcomers » FormLayout problem Third posting
FormLayout problem Third posting [message #101826] Wed, 14 September 2005 16:46
Eclipse UserFriend
I copied the code below from an Eclipse site:

Display display = new Display ();
Shell shell = new Shell(display);
FormLayout layout = new FormLayout();
layout.marginWidth = 3;
layout.marginHeight = 3;
shell.setLayout(layout);

marginWidth is underlined with an error
Syntax error on token "marginWidth", VariableDeclaratorId expected after
this token

marginHeight is underlined as an error
Syntax error on token "marginHeight", VariableDeclaratorId expected after
this token

and the period after shell in shel.layout(layout) is underlined as an error
Syntax error on token(s), misplaced construct(s)

The word layout in the parenthesis is also flagged as an error
Syntax error on token "layout", VariableDeclaratorId expected after this
token
Previous Topic:eclipse-SDK-3.1-solaris-motif hangs at startup
Next Topic:Eclipse Integration
Goto Forum:
  


Current Time: Tue Jul 15 23:26:15 EDT 2025

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

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

Back to the top