FormLayout problem Third posting [message #101826] |
Wed, 14 September 2005 16:46 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07746 seconds