ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
685
685
EMPFEHLEN
-
Hi
Kann mir jemand verraten wie ich mit SWT eine mehrzeilige Textbox bzw. Eingabefeld hinbekomme?
-
04.05.07 00:24 #2
- Registriert seit
- Jun 2002
- Ort
- Saarbrücken (Saarland)
- Beiträge
- 9.886
- Blog-Einträge
- 29
Hallo,
schau mal hier:
Code java:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
/** * */ package de.tutorials; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; /** * @author Tom * */ public class SWTMultilineTextFieldExample { /** * @param args */ public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("SWTMultilineTextFieldExample"); shell.setLayout(new FillLayout()); Text text = new Text(shell,SWT.MULTI); text.setText("ABC\nDEF"); shell.pack(); shell.open(); while(!shell.isDisposed()){ if(!display.readAndDispatch()){ display.sleep(); } } } }
Gruß TomJava rocks!
How to become a good Java Programmer?
Does IT in Java and .Net
The only valid measurement of code quality: WTFs / minute
Blog
Xing
Twitter
Ähnliche Themen
-
Mehrzeilige Button-Beschriftung
Von Maus im Forum Swing, Java2D/3D, SWT, JFaceAntworten: 4Letzter Beitrag: 23.08.10, 22:14 -
Mehrzeilige Listbox
Von notebook20000 im Forum CSSAntworten: 3Letzter Beitrag: 29.06.07, 15:45 -
Mehrzeilige Tabellenzeilen mit SWT
Von snappy42 im Forum Swing, Java2D/3D, SWT, JFaceAntworten: 0Letzter Beitrag: 14.02.07, 12:44 -
PropertyGrid mehrzeilige Textbox
Von liquidbeats im Forum .NET Windows FormsAntworten: 4Letzter Beitrag: 05.04.06, 14:13 -
Mehrzeilige msgBox
Von curi im Forum Visual Basic 6.0Antworten: 1Letzter Beitrag: 03.03.05, 13:50





Zitieren

Login





