Do these functions do the same thing efficiently?

this.setTitle("MyApp");
addWindowListener(new WindowAdapter(){
               public void windowClosing(WindowEvent e) {
                    dispose();
                    System.exit(0);
AND
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
exitForm(evt);
private void exitForm(java.awt.event.WindowEvent evt) {
     dispose();
System.exit(0);
AND
Do i have to call dispose() or will it dispose with the System.exit(0);

It will definitely dispose on System.exit since that's when the virtual machine shuts dows, freeing all possible resources allocated by your app.

Similar Messages

  • Are all these players the same thing n

    I just recently bought a Zen Sleek photo and realized it's the exact same thing as my girlfriend's Zen Micro except better looking, more GB, pictures, and color... Whoopie... They have all the exact same features. There is NOTHING different about these. At least my Zen Xtra was unique... What's the Zen Touch like? Is it the same thing as these 2 or is totally different? I'm returning the Zen Stupid Photo and hopefully getting another, DIFFERENT, player. If the Touch is the same as these 2, I'm done with Creative. Pfft, Creative my ass...

    SouthEcko272 wrote:
    No not the scroll pad, and maybe unique was the wrong word to use lol...
    Well, with the Xtra, you could either choose a list, or graphical menu (Something about it made it less confusing for me). Also, what I liked most about it was that when you add music to the Selected music playlist, all the music goes to the bottom of the list, and doesn't erase the list if you accidentally hit Play (Hope that made sense). The EAX audio was cooler, cuz you could choose environments like Cathedral, Theater, etc. And maybe a couple more that I can't think of right now.
    I see. Well, the Touch is pretty much the same as the Sleek in that regard.
    None of the new players have EAX anymore, not sure why exactly.

  • Since the Nov update about a third of my songs have a circle with an exclamation mark inside it. These song will not play on my computer. I reload with my own cd collection, it works for a while then the same thing happens. Message says "Song could not be

    Since Nov update about a third of my songs have a circle with an exclamation mark inside the circle. These songs will not play on my computer. Message says  "The song .... could not be used because the original file could not be found. Would you like to locate it?"  I have reloaded these back onto itunes with my own CD collection. They work for a short while, then the same thing happens. I don't  know what is causing this or how to fix it.

    I finally resolved my problem after spending way too much time on it. I simply handed my 160GB iPod to my husband to put his fav Stones & Beatles songs on and I went back to my 80GB Microsoft Zune which has never disappointed me.
    After spending so much time trying to figure this out I did finally take it back to Apple Store who performed a diagnostic and found there was a problem with the device. They replaced it with a refurbished one which has similar issues. All I wanted to do was listen to my music. Was that too much to ask? So I am happy to be free of this problematic device. No more Apple for me!!

  • Me and my dad share an iTunes account and all of his music he has purchased on ITunes shows up on my songs list with a cloud icon next to it. How do I get rid of these from my songs list? Cuz it's doing the same thing on my iPhone

    Me and my dad share an iTunes account and all of his music he has purchased on ITunes shows up on my songs list with a cloud icon next to it. How do I get rid of these from my songs list? Cuz it's doing the same thing on my iPhone.

    Go to Edit > Preferences > Store, and uncheck the box for "Show iTunes in the Cloud purchases."

  • Do these two CSS classes do exactly the same thing?

    Is there any conceivable difference between :
    .a {
         position:absolute;
         height:100%;
         width:100%;
    and
    .b {
         position:absolute;
         top:0; right:0; bottom:0; left:0;

    They do not do the same thing.  Class "a" will abide by the inherit margins of the parent container since no positioning information is given, thus defeating why the element is absolute as opposed to relative, whereas class "b" has a position set

  • My iMovie doesn't work. When I open it nothing comes up so I force quit but then it closes, and a message comes up to send to apple. When I try to reopen it, it does the same thing!

    Please hep me this is super aggrivating and I have no clue what to do!

    Hello BellzJay,
    Thank you for your question. It sounds like your iMovie window is not appearing when you open the program and force quitting it then reopening it does the same thing. I would recommend these staps in particluar to try from the following article:
    iMovie: How to troubleshoot "Application Unexpectedly Quit" messages
    http://support.apple.com/kb/ht3143
    1) Verify your software is up to date by running Software Update.
    The updates necessary to resolve the issue are those relating to QuickTime, iLife, iMovie and Mac OS X. If any of these updates are available, install the updates. After you install the updates, run Software Update again to verify there are no more updates for that application available.
    2) Disable non-essential QuickTime components.
    Navigate to /Library/QuickTime/ for a list of components currently installed.
    Temporarily disable any components that are not in the list below. You can disable the components by moving them to the Desktop or another folder outside of the /Library/QuickTime/ folder.
    Open iMovie and see if the issue is resolved. If iMovie no longer unexpectedly quits, check to see if an updated component is available, or contact the developer of the component for further recommendations.
    iMovie uses the following components, and should be left in the QuickTime folder:
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    Note: There may also be a similar folder at ~/Library/QuickTime/ depending on the components you have installed. If this folder is available on your Mac, remove any components as instructed in step 2. Both of these locations hold QuickTime components. The components help you encode or decode different types of multimedia content.
    5) Run Apple Hardware Test and Disk Utility
    If you are experiencing unexpected behavior in other applications, check your hardware by using Apple Hardware Test. You can also test your hard disks using the Verify and Repair functions of Disk Utility.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Ever since I updated to the IOS 6, I no longer can play my music in the car!  It is plug and play!  It just sits there saying connecting and nothing happens.  A few of my friends have said the same thing.  Help please!  Any ideas?

    Ever since I updated to the IOS 6, I no longer can play my music in the car!  It is plug and play!  It just sits there saying connecting and nothing happens.  A couple of my friends have said the same thing.  Any ideas?  Help please!

    Hello ..do you have a history on the phone? did you get it wet? was it dropped? have you been using an authentic ORIGINAL apple charging cable?
    this problem occurs when there is a short circuit  in the phone... you  most likely got  it wet at some point and maybe didnt even realize it? The moisture in the phone hasb probablly  oxidized one or several capacitors, integrated chips thereby short circuiting the phone. that is why he phone  is acting erratic because these short circuits inadvertently "activates" other circuits.. eventually the phone will not turn on anymore- the heat will stress the citcuit board and you will have discontinuity along your main power lines and the phone will cease to function..i see this alllll the time in our shop
    the fact you upgraded to ios6 will even work the phone harder because its a more powerful operating system taking full advantage of the A4 chip..

  • When I get ready to burn my dvds they tend to be blurred. Even with pictures they do the same thing. When I preview them they blur while playing. But when I stop the video it becomes crystal clear.

    When I get ready to burn my dvds they tend to be blurred. Even with pictures they do the same thing. When I preview them they blur while playing. But when I stop the video it becomes crystal clear.

    Lamontsplace
    Thanks for asking for clarification. Appreciated. I did not see you post 8 until after I posted my post 9.
    Important that we define the issue as being related to just preview or to preview and export.
    Project Preset....
    When you start a new project, a project preset (project settings) need to be set by you or the project. The program
    is designed to do that based on the properties of the first video file that you drag to the Timeline. Sometimes the program
    does it right, sometimes not. If not, then you set the project preset manually assuring that the description of the project preset
    matches your video properties for at least frame size, frame rate, etc. A major function of the project preset is to direct
    the program to give you the correct space in the Edit area monitor for editing. If you select a project preset which includes
    1920 x 1080 in its description, then the space in the Edit area monitor will reflect that 16:9 format.
    If you or the program have set the correct project preset, then, when you drag your video to the Timeline for the first time, there
    will be no colored line over its content. That means that you are getting the best possible preview in the monitor. Once you
    edit that video, you will get an orange line over it. That is the program telling you that you no longer have the best possible preview
    and to get it you Timeline render using the Render button above the Timeline. When that Timeline rendering is complete, the orange
    line turns to green. That is the program telling you that you have the best possible preview which will be in effect until you edit the
    file again. Then orange to green again.
    Right now I would prefer to stay with trying to get your photos to an acceptable preview stage. No matter what the project preset,
    these will need Timeline rendering after they are dragged to the Timeline. Several have reported that the use of the DSLR project preset results in sharper images pre and post export. I want to see if any of that can enhance your situation.
    Please review and consider and then let me know if I am going in the right direction for the explanations. I will adjust
    my instructions/suggestions accordingly.
    More later.
    Thanks again for the follow up.
    ATR

  • I have an iMac 5.1 with Mac OSX 10.6.8 and 2 GB memory and an L2 cache of 4 GB.   lately I have been receiving error messages of " start up disk almost full; please delete files." is the start up disk the same thing as the hard drive?

    I have an iMac 5.1 with Mac OSX 10.6.8 and 2 GB memory and an L2 cache of 4 GB.   lately I have been receiving error messages of " start up disk almost full; please delete files." is the start up disk the same thing as the hard drive?  I opened the hard drive and from the column on the left of the menu I've selected "search for" and under that " all images" then "all documents"  I've deleted a few files from each. Are documents and images that I have deleted from here also deleted from the folders on my desktop?

    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Delete any other mail in your Junk folders. Also, look through your Sent Mail to see if there is anything that can be deleted.
    Other things you can do to gain space.
    Once you have around 15 GBs regained, do a search, download and install OmniDisk Sweeper.
    This app will help you locate files that you can move/archive and/or delete from your system.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • I am trying to add a new credit card and it keeps telling me that I have to enter a valid security code...I have tried 2 different cards and it is doing the same thing. How do I get past this?

    I guess it has been a year since I last purchased something on I-tunes and my account is saying that they couldn't authorize my card for some of my purchases.  I am trying to add a new credit card to clear this up and it keeps saying that I have to enter a valid security code.  I have tried 2 different cards and I get the same thing.  I have also added an I-tunes gift card and that isn't clearing up the money that I owe.  It is showing that I have a $25 credit for that.  How do I fix this, I have been trying for days and all I have got from the e-mail tech support is that its my credit card issuer that is causing the problem.  Thats not correct because one of the credit cards that I am trying to use, is a prepaid Visa gift card.  I know that these work on I-tunes because I have used them before in the past.  I am getting very frustrated with this whole process, I just want to clear up my account and buy some new music!! HELP!!

    You probably ran into blocks & locks.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html
    They'll sort it out.

  • TS1398 my kids disabled my ipad and I had to wait 15mins to log in, from then on I have had difficulty connecting to wifi, but can, but then I can't connect to server.  I have reset network settings etc.  It also did the same thing to my iphone at same ti

    My iPad got disabled and once I waited the 15 minutes I logged in, but from then on I could not connect to server dispite having 2-3 bars of wifi signal.  The same thing happened to my iphone5 at the same time although this had not been touched by my 3yr olds.  My wifi is very intermittent and often it goes from 3g to GPRS on my iphone. I have reset network settings, turned devices off by home button and off button, removed sim card in phone, etc. I'm stuck.

    Hi 30daysnow,
    Thanks for visiting Apple Support Communities.
    It sounds like you're seeing wireless connectivity issues on your iPad and iPhone.
    Since you mention having unexpected behavior on both Wi-Fi and 3g (cellular) connections, see these articles for more helpful troubleshooting tips:
    iOS: Troubleshooting Wi-Fi networks and connections - Apple Support
    Get help with the cellular data connection on your iPad (Wi-Fi + Cellular Model) - Apple Support
    The steps in these articles can help resolve the symptoms you're seeing.
    Best Regards,
    Jeremy

  • I have a 27" desktop mac running with OSX 10.6.8.  The bluetooth keyboard started not typing when some of the keys are pressed. Plugged in a wired keyboard, started doing the same thing.  Now the cursor moves but cannot select anything.  Suggestions?

    I have a 27" desktop mac running with OSX 10.6.8.  The bluetooth keyboard started not typing when some of the keys are pressed. Plugged in a wired keyboard, started doing the same thing.  When opening up a browser or application, the cursor moves but cannot select anything.  Suggestions?

    Maybe something in these Apple support articles will help.
    Keyboard Doesn’t Work
    Keyboard Keys Do Not Respond
    Keyboard/Mouse – Troubleshooting Wireless

  • Got my daughter an ipod touch 4th and it wont dothe back up from itunes? I bought my other daughter an iphone 4 and its doing the same thing. Both are locking up itunes too.

    Got my daughter an ipod touch 4th and it wont dothe back up from itunes? I bought my other daughter an iphone 4 and its doing the same thing. Both are locking up itunes too. I tried the deactivate/activate that was suggested it still didnt work. I took the ipod to a friend and hooked to her laptop and it synced fine but now trying to sync on mine it wont do it and it has the backup encryption on but no passwords will unlock it. itunes will reccognize the ipod and the iphone but while going thru the sync steps they both get to step 2 then lock up itunes and then says its syncing but will never stop. I am very frustrated and am regretting buying products from Apple.

    It seems to be a glitch or bug. Its been officially acknowledged and addressed by Apple. There is no resolution other than waiting for a few days.   The Kb article by Apple states it will fix itself on January 7.
    http://support.apple.com/kb/TS4510
    Symptoms
    After January 1st, 2013, Do Not Disturb mode stays on past its scheduled end time.
    Resolution
    Do Not Disturb scheduling feature will resume normal functionality after January 7, 2013. Before this date, you should manually turn the Do Not Disturb feature on or off.
    To turn off the scheduling feature, tap Settings > Notifications > Do Not Disturb and switch Scheduled to Off.

  • IPhone 5 Battery stays at the same percentage, phone fades shows white and black lines then dies. Now phone screen is shaking and does the same thing.

    My iPhone 5 which has been working fine has only today started to get these problems. The phones battery percentage stays at the same number and only changes if i swith it off or when it does it byitself but then stays at that number. When I use it it constantly turns off by slowly fading then showing white and black lines then going off. The screen is now shaking and keeps turning off. It was on IOS 6 which I just updated as I thought this could be the issue but it still does the same thing on IOS 7. Has anyone else experienced these problems or know what is wrong with my iPhone?
    Please reply!

    Sounds like the device is failing. Since you updated to iOS 7, that would do the same as a restore. I would make an appointment at the Genius Bar at Apple to have the device checked.

  • Firefox doesn't display Amazon.ca website properly. Text is missing and some navigation button texts are screwy. Older version of FF worked well but each time I upgrade the same thing happens. Help!

    With each new version of Firefox, I run into the same issue with Amazon.ca (amazon.com works fine). For instance, on Amazon.COM the links for my account and help are stated as "Your Account | Help". On amazon.CA the links for my account and help are stated as "your-account_279 | topnav-help_1057".
    When I log into my account on Amazon.COM I have a web page with text and buttons and links. all functioning. When I log into my account on Amazon.CA I get nothing except two orange buttons - "Your Orders" and "sell my stuff". everything else is blank.
    This has happened with each upgrade of Firefox. It seems that Amazon.CA finally gets their coding right and FF comes out with a new version which then screws the website up. are you making your upgrades available to Amazon.CA?
    And just so you know, The same thing happens on IE and Chrome.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    See also [[Websites look wrong]]

Maybe you are looking for

  • Error while generating PDF BI 7 Report Designer

    Hi, I am getting this error Error while generating PDF when i tried print version on report designer, I tried to find information on this error but there was no information regarding this , so posted here. Please let me know if you have any suggestio

  • Moving itumes from pc to mac went ok, but no applicaitons.

    switching from pc to mac... I moved my iTunes from win to mac using backup...everything seems to have worked ok, except applications. None of them would sync. So, I went to iTunes and got all apps that were free, and then they synced as expected. The

  • Windows command line to invoke jabber client

    Hi there,   We have an application running when jabber starts. Currently users have to start Jabber manually first and then start working with the app.  Is there a way to invoke jabber from command-line with parameters such as credential?   Thanks! L

  • IOS 8 Hidden Photo Data

    Okay, I'm running iOS 8.1.3 on my iPhone 6 and trying to clean off space. I have cleared off ALL of the pictures in the photo app, even in the deleted pictures folder. However, for some reason iTunes and the Settings app say I have 1.1GB of space tak

  • Help! My laptop crashed and I've lost all doc stored in icloud

    Help! My laptop crashed and had to be rebuilt so I lost all my photos, apps and music etc. I have some on my iPhone and others on my ipad but is there a way of reloading everything that I stored on icloud back onto my windows laptop?