Home > Default > Why fullscreen application hangs on debug

Why fullscreen application hangs on debug

November 30Hits:0
Advertisement
why fullscreen application hangs on debug
My application runs in full-screen with resolution 1024-768 with the following code:
GraphicsDevice device;
  public void startApplication() throws Exception
      boolean isFullScreen = device.isFullScreenSupported();
       if (isFullScreen) {
            device.setFullScreenWindow(this);
            validate();
            frame.setVisible(true);
        } else {
            System.out.println("Your Screen Does't Support Full Screen");
    } // eof startApplication method
     * @param arg String[]
     * main() method
    public static void main(String[] arg)
        try
         GraphicsEnvironment ge = GraphicsEnvironment.
                                    getLocalGraphicsEnvironment();
            GraphicsDevice gs = ge.getDefaultScreenDevice();
            ApplicationDesktop desktop = new ApplicationDesktop(gs);
//ApplicationDesktop  extends Jframe
           desktop.initComponents();
           desktop.startApplication();
          }catch(Exception ex)
             ex.printStackTrace();
          }

Answers

Maybe because your debugger is stealing the focus of your full-screen window.
Try to add a WindowFocusListener to your window, making it iconifing or whatever when it loses the focus.
Just a guess.
Hidralisk

Read other 3 answers

Tags:

Related Articles

  • Why fullscreen application hangs on debugNovember 30

    why fullscreen application hangs on debug My application runs in full-screen with resolution 1024-768 with the following code: GraphicsDevice device;   public void startApplication() throws Exception       boolean isFullScreen = device.isFullScreenSu

  • JDeveloper 11.1.1.1.0 hangs while debugging a simple applicationNovember 30

    Hello all... I use Jdeveloper 11g in my Fedora linux ( version 9 ) machine. Jdev works fine normally, but when I try to debug a sample application it simply hangs and does not allow me to do anything besides going to console mode and killing off all

  • After Effects CS6 and Premiere Pro CS6 Long Startup and Application HangOctober 11

    Problem: After Effects and Premiere Pro CS5.5 and CS6 are very slow to start all of a sudden.  Around 5 minutes to get to/by the intro dialogue box.  For AE, the majority of the time is spent on the "initializing user interface." Then, if I can

  • JavaMail application hanged with no error throwed at Transport.sendOctober 11

    JavaMail application hanged with no error throwed at Transport.send,even though I set the timeout property import java.util.Date; import java.util.Properties; import javax.mail.Authenticator; import javax.mail.Message; import javax.mail.PasswordAuthe

  • Application hangs while running a report from FormsOctober 11

    Hi all, I am getting a problem regarding running reports from Oracle forms application for printing in a shared printer at client system. There is no problem when I set the DESTYPE to HTMLCSS or FILE. But when I set it to PRINTER then the application

  • Application hanging after commit issued, how to tell why?October 11

    Hi All, We're using adf bc, jsp's and jdev 10.1.2. The scenario is this.. I have 2 views based on the same entity(called Milk). One view is the control view Milk i.e. straightforward select, no where clause. The other one is based on a join with anot

  • ADF application hangs after  $$added root$$ message in the logsNovember 30

    Hi ADF Gurus, We have an ADF application which freezes after we create a row in a particular VO, When debugged in Jdev, the application seems to hang when either of the below log messages appear. Does anybody know what these messages mean? Just hopin

  • Java application hangs during running java native methodNovember 30

    Hello, There is compiled java application. It hangs at very begginings. It was detected that in the beggining a new Frame should be created. Then one java library invokes native method. During invoking of the native method application hangs. Stack is

  • Creator Hangs in debug modeNovember 30

    I am testing a five page web page that connects to an SQL Server database. I am experiencing severe memory problems in debug mode. The application hangs after stepping through a some code. The debug screen goes all grey and I cannot get it to return

  • Random Application hangs having installed Mavericks 10.9.1November 30

    Having installed mavericks 9.1 just before Christmas I find various applications hang at random points. I list some of those happening since 28th December: Finder "Open With" Save As (in Powerpoiint) Save AS (in Grab) Start Lightroom (get initia

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 15 q. 2.554 s.