zoukankan      html  css  js  c++  java
  • SWT.Shell

     1 import org.eclipse.swt.widgets.Display;
     2 import org.eclipse.swt.widgets.Shell;
     3 
     4 public class SWT_Shell {
     5 
     6     public static void main(String[] args) {
     7 Display display = Display.getDefault();
     8 Shell shell  = new Shell();
     9 shell.setSize(800, 600);
    10 shell.setText("SWT.Shell");
    11 shell.setLayout(null);
    12 
    13 shell.open();
    14 shell.layout();
    15 while (!shell.isDisposed()) {
    16     if (!display.readAndDispatch()) {
    17         display.sleep();
    18     }
    19 }
    20 
    21     }
    22 
    23 }
  • 相关阅读:
    Binary Tree Paths
    Implement Stack using Queues
    Path Sum II
    Path Sum
    Plus One
    Add Digits
    Missing Number
    H-Index II
    H-Index
    Ugly Number II
  • 原文地址:https://www.cnblogs.com/the-wang/p/7124448.html
Copyright © 2011-2022 走看看