쉘 윈도우를 표시하는 Java SWT (GUI) 프로그램을 작성하고 Eclipse에서 실행하고 Fedora 17 운영 체제를 사용하고 있습니다.Linux에서 옵션을 최대화하고 최소화하는 것이 Windows에서 작동하지 않는 이유
해당 창에서 maximize 및 minimize 옵션이없는 출력이 나타납니다. 그러나 나는 Windows 7에서 그것을 시도하고 나에게 아무것도 놓치지 않고 올바른 출력을 제공합니다.
Fedora 17에 누락 된 이유는 무엇이며 누구가 해결책을 찾고 있습니까?
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
public class Example {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display,SWT.MAX|SWT.MIN);
Label label1 = new Label(shell,SWT.NONE);
label1.setText("CLEAR IT OUT PLEASE");
label1.setBounds(50,30,200,30);
shell.pack();
shell.setSize(315,200);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}