import org.eclipse.swt.widgets.Display;
public class TestSWT {
private static Text text;
public static void main(String[] args) {
Display display = Display.getDefault();
Shell shell = new Shell();
shell.setSize(450, 300);
shell.setText(\"SWT Application\");
text = new Text(shell, SWT.BORDER);
text.setBounds(66, 81, 125, 39);
Button btnNewButton = new Button(shell, SWT.NONE);
btnNewButton.setBounds(115, 126, 76, 25);
btnNewButton.setText(\"\\uB20C\\uB974\\uC2DC\\uC624\");
Label lblNewLabel = new Label(shell, SWT.BORDER);
lblNewLabel.setBounds(197, 83, 131, 39);
shell.open();
shell.layout();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
}
}
-----------------------------------------------------------------------------
저 사진과 소스의 내용인데 이렇게 만들었어
여기서 텍스트박스에 글자를 쓴뒤에 버튼눌리면 스태틱박스에 글자를 뜨게 하고 싶은데
어떻게 하는건지 모르겠어 아주간단한건데 좀 도와줘~~~~~~~
1. 버튼에 이벤트 액션을 등록한다.
2. 이벤트가 발생하면, 텍스트박스의 value 값을 get 한다.
3. get 한 값을 스태틱 박스에 set 한다.
아이구 시발넘ㅋㅋㅋㅋㅋㅋ