Label not Visible [message #77097] |
Thu, 06 March 2008 13:56 |
Eclipse User |
|
|
|
Originally posted by: me.micha-shl.de
Hey all,
I don`t know if it`s a bug or a 'feature'?!
I created my own Entrypoint, but in the first Version:
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setSize(560, 420);
shell.setText("Shell Title");
shell.setLayout( new FillLayout());
final Label label = new Label(shell, SWT.CENTER);
label.setText("============= Start =================");
label.setVisible(true);
label.setEnabled(true);
shell.open();
...
the Label is not visible.
If I move the shell.setSize(560, 420) between the label.setEnabled(true)
and shell.open() the Label shows just fine.
Hope I don`t out me as an Newbie.
Regards
Michael
|
|
|
|
Powered by
FUDForum. Page generated in 0.02202 seconds