【Java/C/PHP/D/他】統合開発環境Eclipse M16
■ このスレッドは過去ログ倉庫に格納されています
0532デフォルトの名無しさん
05/02/27 22:51:29import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
public class guitest
{
private org.eclipse.swt.widgets.Shell sShell = null; // @jve:decl-index=0:visual-constraint="10,10"
private Button button = null;
private Label label = null;
private Text textArea = null;
private void createSShell() {
sShell = new org.eclipse.swt.widgets.Shell();
button = new Button(sShell, SWT.NONE);
label = new Label(sShell, SWT.NONE);
textArea = new Text(sShell, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
sShell.setText("テストwindow");
button.setBounds(new org.eclipse.swt.graphics.Rectangle(12,11,226,33));
label.setBounds(new org.eclipse.swt.graphics.Rectangle(25,19,101,17));
label.setText("GUIテストwindow");
textArea.setBounds(new org.eclipse.swt.graphics.Rectangle(1,64,304,128));
sShell.setSize(new org.eclipse.swt.graphics.Point(315,220));
label.addKeyListener(new org.eclipse.swt.events.KeyAdapter() {
public void keyPressed(org.eclipse.swt.events.KeyEvent e) {
System.out.println("keyPressed()"); // TODO Auto-generated Event stub keyPressed()
}});}}
■ このスレッドは過去ログ倉庫に格納されています