Hi,
ich möchte innerhalb einer Shell einen Text zentrieren: Horizontal und vertikal. Leider komme ich nicht so ganz voran, was muss man dafür machen?
Ich habe schon alle möglichen (Layout-)GridData und (Label-)style kombinationen versucht: Ohne erfolg. Was muss ich tun?
Siehe auch: http://www.java-forum.org/de/viewtopic.php?t=59634 (ohne Lösung)
MfG
DeeDee0815
ich möchte innerhalb einer Shell einen Text zentrieren: Horizontal und vertikal. Leider komme ich nicht so ganz voran, was muss man dafür machen?
Code:
info = new Composite(window, SWT.NONE);
infoLayout = new GridLayout();
infoLayout.numColumns = 1;
info.setLayout(infoLayout);
infoLabel = new Label(info, SWT.CENTER);
infoLabelLayoutData = new GridData(GridData.FILL_BOTH);
infoLabel.setText("Please select an action to get started.");
infoLabel.setLayoutData(infoLabelLayoutData);
infoLabel.pack();
Ich habe schon alle möglichen (Layout-)GridData und (Label-)style kombinationen versucht: Ohne erfolg. Was muss ich tun?
Siehe auch: http://www.java-forum.org/de/viewtopic.php?t=59634 (ohne Lösung)
MfG
DeeDee0815