Examples of Display


Examples of org.eclipse.swt.widgets.Display

      }
    });
  }
 
  public static void main(String[] args) {
    Display display = new Display();
    ExternalLoginWindow slw =
      new ExternalLoginWindow(
        new ExternalLoginListener()
        {
          public void
          cookiesFound(
            ExternalLoginWindow window,String cookies)
          {
            System.out.println( "Cookies found: " + cookies );
          }
         
          public void
          canceled(
            ExternalLoginWindow window)
          {
            System.out.println( "Cancelled" );
          }
         
          public void
          done(
            ExternalLoginWindow window,String cookies)
          {
            System.out.println( "Done" );
          }
        },
        "test",     
        "http://www.sf.net/",
        false,
        WebEngine.AM_PROXY,
        true );
   
    while(!slw.shell.isDisposed()) {
      if(!display.readAndDispatch()) {
        display.sleep();
      }
    }
   
    System.out.println( "Found httponly cookies=" + slw.proxyCaptureModeRequired());
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

      //checkForDonationPopup();
      open(true, "test");
    } catch (Exception e) {
      e.printStackTrace();
    }
    Display d = Display.getDefault();
    while (true) {
      if (!d.readAndDispatch()) {
        d.sleep();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

public class Test {

  final static int IMAGES_TO_CREATE = 100;
 
  public static void main (String [] args) {
    Display display = new Display ();
    Image[] images = new Image[IMAGES_TO_CREATE];
    for(int i = 0 ; i < IMAGES_TO_CREATE ; i++) {
      images[i] = new Image(display,800,600);
    }
    for(int i = 0 ; i < IMAGES_TO_CREATE ; i++) {
      images[i].dispose();
    }
    display.dispose ();
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

    }
   
  }
 
  public static void main(String[] args) {
    Display display = new Display();
    SubscriptionListWindow slw = new SubscriptionListWindow(null,false);
    while(!slw.shell.isDisposed()) {
      if(!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

  public String[]
  selectNetworks(
    final String  description,
    final String[]  tracker_networks )
  {   
    final Display  display = SWTThread.getInstance().getDisplay();
   
    if ( display.isDisposed()){
     
      return( null );
    }
   
    final AESemaphore  sem = new AESemaphore("NetworkClassifier");
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

      final String sourceRef) {
    final UIFunctions functions = UIFunctionsManager.getUIFunctions();
    if (functions == null) {
      AEThread2 thread = new AEThread2("show browser " + url, true) {
        public void run() {
          final Display display = Display.getDefault();
          display.asyncExec(new AERunnable() {
            public void runSupport() {
              BrowserWindow window = new BrowserWindow(
                  display.getActiveShell(), url, w, h, allowResize, false);
              window.waitUntilClosed();
              message.complete(false, true, null);
            }
          });
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

      if (refreshed) {
        refreshed = false;
        if (!Utils.execSWTThread(new AERunnable() {
          public void runSupport() {
            try {
              Display display = Utils.getDisplay();
              if (display == null) {
                return;
              }

              if (display.getActiveShell() == null) {
                Shell[] shells = display.getShells();
                boolean noneVisible = true;
                for (int i = 0; i < shells.length; i++) {
                  if (shells[i].isVisible() && !shells[i].getMinimized()) {
                    noneVisible = false;
                    break;
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

  private void update(List updateables) {
    long start = 0;
    Map mapTimeMap = DEBUG_TIMER ? new HashMap() : null;

    Display display = Utils.getDisplay();
    if (display == null || display.isDisposed()) {
      return;
    }

    Object[] updateablesArray = updateables.toArray();
    for (int i = 0; i < updateablesArray.length; i++) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

    browser.setUrl(url);
    browser.setData("StartURL", url);
  }

  public void waitUntilClosed() {
    Display display = shell.getDisplay();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Display

      }
    }
  }

  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display, SWT.DIALOG_TRIM);
    shell.setSize(800, 600);

    new SimpleBrowserWindow(shell, "http://google.com", 0.8, 0.5, true, false);

    shell.open();

    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.