Exiting programs that have use the fullscreen exclusive mode

I have lots of problems, this is one of them:
When making a program that uses fullscreen mode, the program does not exit by itself when it comes to the end of the program. In fact the only way I can get it to exit is through System.exit(0);
And I don't want to use that for numerous reasons.
try
gd.setFullScreenWindow(jw);
gd.setDisplayMode(dm[theDisplayMode]);
finally
gd.setDisplayMode(oldDisplayMode);
gd.setFullScreenWindow(null);
end of program......
          }

I have lots of problems, this is one of them:
When making a program that uses fullscreen mode, the program does not exit by itself when it comes to the end of the program. In fact the only way I can get it to exit is through System.exit(0);
And I don't want to use that for numerous reasons.
try
gd.setFullScreenWindow(jw);
gd.setDisplayMode(dm[theDisplayMode]);
finally
gd.setDisplayMode(oldDisplayMode);
gd.setFullScreenWindow(null);
end of program......
          }

Similar Messages

  • How to get out of fullscreen exclusive mode?

    I have a program that runs in full screen exclusive mode, I'd like the program to start up in windowed mode instead.
    I spent several hours trying to make it run in window mode, but I can't seem to figure it out :/
    Here's the code:
            if (graphicsDevice.isFullScreenSupported()) {
                graphicsDevice.setFullScreenWindow(this);
            if (graphicsDevice.isDisplayChangeSupported() == false) {
                return false;
            boolean displayModeAvailable = false;
            DisplayMode[] displayModes = graphicsDevice.getDisplayModes();
            for (DisplayMode mode : displayModes) {
                if (screenWidth == mode.getWidth() && screenHeight == mode.getHeight()
                        && screenColorDepth == mode.getBitDepth()) {
                    displayModeAvailable = true;
            if (displayModeAvailable == false) {
                return false;
            DisplayMode targetDisplayMode =
                    new DisplayMode(screenWidth, screenHeight,
                        screenColorDepth, DisplayMode.REFRESH_RATE_UNKNOWN);
            try {
                graphicsDevice.setDisplayMode(targetDisplayMode);
            } catch (IllegalArgumentException exception) {
                return false;
            if (EventQueue.isDispatchThread() == false) {
                EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        createBufferStrategy(2);
            } else {
                createBufferStrategy(2);
            bufferStrategy = getBufferStrategy();
            try {
                graphics2D = (Graphics2D) bufferStrategy.getDrawGraphics();
                gameRender(graphics2D);
                if (drawGameStatistics) {
                    gameStatisticsRecorder.drawStatistics(graphics2D, 0, 0);
                graphics2D.dispose();
            } catch (Exception exception) {
                System.err.println("GameEngine.gameRender: " +
                        "Error cannot render screen:" + exception.toString());
                exception.printStackTrace();
            }Thanks

    Have you read these?
    [http://java.sun.com/docs/books/tutorial/extra/fullscreen/]
    [http://java.sun.com/docs/books/tutorial/extra/fullscreen/exclusivemode.html]
    db

  • I recently bought  Lightroom and installed on one of my computes. I wanted to instal the program on another computer I have, using the same serial number I already bought and I'm not alowed as it says that the SN is not valid. What shall I do?

    I recently bought  Lightroom and installed on one of my computes. I wanted to instal the program on another computer I have, using the same serial number I already bought and I'm not alowed as it says that the SN is not valid. What shall I do?

    It is possible that you downloaded the Creative Cloud trial of Lightroom. The perpetual license key will not work. Uninstall the version on the second computer, this will not interfere with your catalog, preferences and personal files.
    Download the appropriate version from the link below and install, your license key will be accepted and everything will be fine.
    Product updates

  • Hello my name is Omar Andres Santacruz, finished iMedicalOffice buy a program you have in the app store but what he said on the page is not what I expected, I was very disappointed that, frustrated and reweighed when I check my account had gained 139.99 f

    Hello my name is Omar Andres Santacruz, finished iMedicalOffice buy a program you have in the app store but what he said on the page is not what I expected, I was verydisappointed that, frustrated and reweighed when I check my account had gained139.99 for 7 times, I do not understand what has happened that is not the first time I buy something ustedeses thank you very much for your help

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • I would like to do a program that have one string control and one string indicator, any character that I type in the string control in the same time it will be appear in another string (indicator). How can help me?

    I would like to do a program that have one string control and one string indicator, any character that I type in the string control in the same time it will be appear in another string (indicator). How can help me?

    Why not use an event
    Add a While Loop, inside the loop add the Event Sructure.
    Now in the event structure selecd the String Controls.value change event to
    react
    and the new value inside the event that you get,( connect to the String
    indicator box.
    On Sun, 10 Aug 2003 15:58:47 -0500 (CDT), WiltonFilho wrote:
    > I would like to do a program that have one string control and one
    > string indicator, any character that I type in the string control in
    > the same time it will be appear in another string (indicator). How can
    > help me?
    >
    > I would like to do a program that have one string control and one
    > string indicator, any character that I type in the string control in
    > the same time it will be appear in another string (indicator). How can
    > help me?
    >
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

  • I have been noticing that when using the computer the mouse keeps going in places where I really do not want and just now select the sentence without I have done anything. Sometimes goes to places like bookmark or open tabs in website when I am reading a

    I have been noticing that when using the computer the mouse keeps going in places where I really do not want and just now select the sentence without I have done anything. Sometimes goes to places like bookmark or open tabs in website when I am reading a page.
    Also I have noticed opened windows that I have not opened.
    I have verified the sharing folder and also the remote access but it not let me turn it off.
    Also I have add a password to my computer and even using the same one it looks like is not working.
    The I photo stopped working, Mac Mail does not let me add rules (this is from one day to the other)
    The computer is mine, the internet I use is payed by me with a password. I did not give permission to anyone to use my computer or share my files.
    In system preferences in the sharing folder is showing everyone and staff.
    My computer is private I do not own a company and I do not have a network set up in my house.
    I had my photos removed from my computer and even after trying to reinstall I photo and fix the Mac Mail is not working.
    I am receiving emails saying that I have sent emails to people that I do not know and including in a time where I am working and not using the computer.
    Any suggestions in how to fix this issue?
    I really appreciate.

    With the multitude of issues you have I would take it to an Apple store or AASP and have them sort it out. Then I would sign up for Apple camp or one on one.

  • Is there an easy to use word processing program that works on the iPad?

    Is there an easy to use word processing program that works on the iPad?

    A gazillion.  Pages, docs to go, quick office.  Look in the app store for word processing.  Read the reviews.

  • Is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    How to Recover Photos from iPad
    http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
    iPad Data Recovery Software (PC & Mac)
    http://www.anysoftwaretools.com/ipad-data-recovery.html
    Jihosoft Mobile Recovery for iOS
    http://www.fonerecovery.com/iphone-data-recovery.html
     Cheers, Tom

  • I am trying to download the newest Itunes to windows 7. I did have a previous version that I used the control panel to delete. When I click on download, I get a small partial window in the upper left corner showing Internet Explorer Cannot Display the Web

    I did have a previous version of Itunes and Quicktime that I used the control panel Uninstall to remove. When I do the download, I get a small window in the upper left saying Internet Explorer Cannot Display Webpage. It is trying to get to ....itunes64setup.  I did check to see that all old Apple directorories, etc have been delete. Help!

    Okay. Let's see if you've acquired some kind of restriction for the download site. These settings checks/changes apply to the IE downloads, so we'll be trying to use IE again.
    Head into your Internet Options control panel, and click the Security tab. Click Restricted Sites.
    Check to see if the following website is listed as a restricted site:
    appldnld.apple.com.edgesuite.net
    If it is, remove it from your list of restricted sites and try another download.
    If still no joy, head back into the security tab of the Internet Options control panel. Click Trusted Sites this time. Click the "Sites" button.
    Add appldnld.apple.com.edgesuite.net as a trusted site. Uncheck the "Require server verification" box. Now click OK and try another download.

  • I am a user of iPhone 4 that they gave to me .. then suddenly my brother restored it and we cannot identify the apple id and password that have used to unlock this phone.. please help me .. because i can't use anymore my phone

    I am a user of iPhone 4 that they gave to me .. then suddenly my brother restored it and we cannot identify the apple id and password that have used to unlock this phone.. please help me .. because i can't use anymore my phone
    Please Help me .. im from Philippines
    thx a lot apple company
    <Email Edited By Host>

    This is not Apple we are all users here
    You will need to obtain the original Apple id ,that is the only way to unlock it
    Speak to the original owner .If you cannot it is likely the iPhone was stolen and the activation lock is preventing use by a third party that is you

  • I have a disc of Creative Cloud 6. Acrobat Pro does not work. I have used the other programs and they are fine, but when I try to open Acrobat Pro nothing happens. I am using Microsoft System 7.

    I have a disc of Creative Cloud 6. Acrobat Pro does not work. I have used the other programs and they are fine, but when I try to open Acrobat Pro nothing happens. I am using Microsoft System 7.

    what's creative cloud 6?  do you mean cs6?
    what version of acrobat pro do you have installed and what are you clicking to start it?

  • I have files that say they are missing or offline. I have checked all my folders off of lightroom and they can not be found. I have used the ? mark settings to find and still not found. I can see the images on lightroom so they have to be in my system som

    I have files that say they are missing or offline. I have checked all my folders off of lightroom and they can not be found. I have used the ? mark settings to find and still not found. I can see the images on lightroom so they have to be in my system some how. How can I retrieve these images? Is there a re boot for lightroom? Need help ASAP!

    You have probably moved the files outside of Lightroom. The images you see in LR are previews that were made before you moved the files.
    Do a search for the files/folders using your computers operating system. (Explorer/Finder)
    Once you have found them, you can point LR to the right location.

  • HT3702 Jakarta, 05th September 2012  Subject : Can't buy the gold in crime city HD.  To whom may concern :   My name is Mr. Gunawan, now I was playing crime city hd, and I have buy 2 times gold in that game, using the same creadit card.  but when I want t

    Jakarta, 05th September 2012
    Subject : Can't buy the gold in crime city HD.
    To whom may concern :
    My name is Mr. Gunawan, now I was playing crime city hd, and I have buy 2 times gold in that game, using the same creadit card.
    but when I want to buy the third times, can't it's said "Please contact itunes support to complete this transaction"
    so I was think may be something wrong with my credit card, and I  direct call my credit card to check to make sure that  I still have limit,
    according to my credit card customer service, everthing is ok, nothing wrong with my payment, the limit is more that enough for the next transaction. 
    I try to buy it again, but still can't and it's said "Please contact itunes support to complete this transaction"
    pls kindly advise. So I can keep continue playing playing crime city hd.
    Best regards,
    Gunawan
    <Personal Info Edited By Host>

    These are user-to-user forums, you are not talking to Apple here - I've asked the hosts to remove your email address from your post.
    You can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Where did 30GB of unused space on my SSD main drive go?  I have a mid 2011 iMac that until yesterday had just 54GB of space occupied on the primary drive.  I imported 45 minutes of video from an SD card.  Could that have used up the space?

    Where did 30GB of unused space on my SSD main drive go?  I have a mid 2011 iMac that until yesterday had just 54GB of space occupied on the primary drive.  I imported 45 minutes of video from an SD card.  Could that have used up the space?

    I added an SSD to my 27" 2011 iMac.  Although Sahidus is absolutely correct, it is much easier to add an SSD replacing the optical drive, it wasn't that bad to add it using an entirely seperate cable using SATA-III.  To me it is worth the extra hassle to install a SATA-III SSD.  This is where you are going to get maximum performance.
    Although it appears complicated, if you go slow, the procedure to install an SSD drive isn't too bad.  It takes at most 3 hours, as long as you are prepared and have all the parts and tools.
    http://www.btobey.com/learn/imac-ssd-install.php
    This describes how I did it.  Now I get awesome data performance from my iMac!
    I think the 21.5" may be more difficult to find where to place the SSD.  But im sure it is possible.  Just be creative.

  • Does anyone have a simple program that will return the size of a file

    Does anyone have a simple program that will return the size of a file?

    I quite hate it when I receive the incorrect amount of yoctocandela per metre squared. Swarthy people
    can't properly convert poundal feet to barleycorn; throws off the whole conversion! Aaah, you get what
    you paid for.I recognize those figures; you've got your outsourced file sizes from Zanzibar; admit it! I always apply
    the scientific approach when I've got file sizes back from Zanzibar: I simply divide those numbers by
    pi (very scientific) and drop the eleven (ueber scientific, because 11 is prime even when looked upon
    as a binary number) least significant bits. And remember: never compare two floating point numbers
    for equality. (<--- that's a free tip)
    Jos ;-)

Maybe you are looking for

  • Why is the visual editor such a pain?

    When I drag and drop components from the Component Palette to a page in the visual editor, instead of the UI component, I see the component with box outline in the design view of the visual editor. A few others have complained about this problem too.

  • What's the safest way to reload system software

    What's the safest method to reload system software on an intel iMac? My wife's iMac has been behaving erratically.  I have run hardware and virus scans and found no issues. Virus software is Saphos and up to date. Problems began after a brief (5 seco

  • IPhoto profile issue explored

    I've read other posts here about the issue of dim and oversaturated photos in iPhoto. I am also experiencing this. Here's what I've learned. I've had a Canon Rebel XT for a couple years, and we use it exclusively with iPhoto. I've had no problems wit

  • Coordinate system question

    I am rather new to Java graphics so bare with me. I am dealing with real world maps with real world coordinates and then putting them into a UI. Is there a fast way/class/open source to convert the real world coordinates to coordinates on the screen.

  • Messages in delivery (vl02n)

    Hi all: I'm trying to develop a custom message for the quality certificate and add it to the messages used in the delivery (TX VL01N), therefore, I create a new type of message in order to call my program (ZQCA) instead of the standard one (LQCA). Ho