Package java.awt

Examples of java.awt.Window$WindowFlipBufferStrategy


    Thread.sleep(2000);
   
    SwingUtilities.invokeAndWait(new Runnable(){
      public void run() {
          final Window activeWindow =
              FocusManager.getCurrentKeyboardFocusManager().getActiveWindow();
          final Component focusOwner =
              FocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
          final Component pfocusOwner =
              FocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner();
View Full Code Here


     * Invoked when an action occurs.
     */
    public void actionPerformed(ActionEvent e)
    {
      System.out.println ("Execute!");
      final Window activeWindow =
          FocusManager.getCurrentKeyboardFocusManager().getActiveWindow();
      final Component focusOwner =
          FocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
      final Component pfocusOwner =
          FocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner();
View Full Code Here

            return getContentPane().getSize();
        }

        public void show(int x, int y) {
            if (!isVisible()) {
                Window owner = getOwner();
                if (x <= 0 && y <= 0) {
                    if (owner != null) {
                        setLocationRelativeTo(owner);
                    } else if (owner == null) {
                        setDefaultPosition(this);
View Full Code Here

            return getContentPane().getSize();
        }

        public void show(int x, int y) {
            if (!isVisible()) {
                Window owner = getOwner();
                if (x <= 0 && y <= 0) {
                    if (owner != null) {
                        setLocationRelativeTo(owner);
                    } else if (owner == null) {
                        setDefaultPosition(this);
View Full Code Here

            hb.setSize(DcSettings.getDimension(DcRepository.Settings.stHelpFormSize));
            hb.setLocation(Utilities.getCenteredWindowLocation(hb.getSize(), false));
            hb.setFont(ComponentFactory.getSystemFont());
            hb.setDisplayed(true);
           
            Window helpWindow = hb.getWindowPresentation().getHelpWindow();
            if (helpWindow instanceof JFrame) {
                JFrame helpFrame = (JFrame) helpWindow;
                helpFrame.setIconImage(IconLibrary._icoMain.getImage());
                helpFrame.setTitle(DcResources.getText("lblDataCrowHelp"));
            }
View Full Code Here

    /**
     * Redo the layout of the preview field to take into account size changes
     * This default implementation packs the window, if any, owner of this panel
     */
    protected void updateLayout() {
        Window w = SwingUtilities.getWindowAncestor(tfpreview);
        if (w != null) {
            w.pack();
        }
    }
View Full Code Here

    }

    public void controllerUpdate(ControllerEvent ce) {
  if (ce instanceof RealizeCompleteEvent) {
      if (videoPanel == null)
    videoPanel = new Window(frame);
      else
    videoPanel.removeAll();
      // Get the player's visual component, if any, and put it in a Window above
      // the control panel.
            Component vis = player.getVisualComponent();
View Full Code Here

        try {
            updateComponentTreeUI(window);
        } catch (Exception exception) {
        }

        Window windows[] = window.getOwnedWindows();

        for (int i = 0; i < windows.length; i++) {
            updateWindowUI(windows[i]);
        }
    }
View Full Code Here

     * @return true if the dialog tracker is tracking the dialog
     */
    public static boolean containsDialog(Class dialog) {
        checkInstance();
        for (int i = 0; i < DialogTracker.instance.size(); i++) {
            Window check = (Window) DialogTracker.instance.get(i);
            if (check.getClass().getName().equals(dialog.getName())) {
                check.toFront();
                return true;
            }
        }

        return false;
View Full Code Here

     * is lost
     */
    public static void kill() {
        checkInstance();
        for (int i = 0; i < DialogTracker.instance.size(); i++) {
            Window check = (Window) DialogTracker.instance.get(i);
            if (instance.kDialogs.get(check) != null) {
                check.setVisible(false);
                DialogTracker.removeDialog(check);
                i--;
                check.dispose();
            }
        }
    }
View Full Code Here

TOP

Related Classes of java.awt.Window$WindowFlipBufferStrategy

Copyright © 2018 www.massapicom. 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.