텍스트1 SWT Text Widget Text Widget 텍스트(Text) 위젯은 텍스트 열람이나 편집 기능을 제공한다. 사용자가 위젯에서 표현할 수 있는 것보다 더 많은 텍스트를 입력하면 자동으로 스크롤이 활성화된다. 숫자(0~9)만 입력할 수 있는 Text Widget public class TextWidgetSample { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("Text Widget"); shell.setBounds(100, 100, 300, 200); shell.setLayout(new FillLayout()); final Text text = new T.. 2019. 4. 7. 이전 1 다음