JFileChooser home button shows desktop - bug?

Running jdk 1.4.1 on XP I would expect the home button to direct the user to his or her "My Documents" folder. However, when clicking the home button, the desktop is shown. Is this a known bug? Is there a workaround?
Randahl

i think you can decide which directory is the home directory.
JFileChooser
public JFileChooser()Constructs a JFileChooser pointing to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.
This is taken from the JFileChooser interface... its not a bug its the default value. You can alterate that using a different constructor such as
public JFileChooser(String currentDirectoryPath)Constructs a
JFileChooser using the given path. Passing in a null string causes the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.
Hope this helps

Similar Messages

  • How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain

    How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • "Show Desktop" bug forces any program windows to be stuck "Always-on-top"

    What I found under Windows 7, when you use the "Show Desktop" feature (I prefer the ⊞ Win + D shortcut) and then bring all windows back by using it again, some windows behave as if they're glued to the front of the z-order. What this means is, say, I have windows
    A B and C open, with focus on A, hit ⊞ Win +D twice, and now it may happen that if I then want to switch to B or C, either by Alt+Tab or by selecting them on the taskbar, the taskbar shows the highlight, but A stays visible (and usable, it's not just a rendering
    issue) in the foreground.
    Imagine the following situations, all three windows cascading and overlapping:
    A (focus)
    B
    C
    -> ⊞ Win + D
    Desktop (focus)
    -> ⊞ Win + D
    A (focus)
    B
    C
    -> click C on taskbar
    A
    C (focus)
    B
    -> click B on taskbar
    A
    B (focus)
    C
    And so on. Focus means actual input focus, i.e. in second situation, any keyboard typing is sent to window B while window A is in the foreground.
    It does not matter what kind of application; in my current case an instance of Outlook and an instance of Explorer is stuck, while a second instance of Explorer and an instance of Firefox behave normally. This should show that this problem can occur even between
    multiple instances of the same application, and that there are no fancy applications involved that like to pretend they are the most important program and internally force "always on top".
    Showing and unshowing the desktop again doesn't help; in the worst case another window might end up with the "glued to the top of the z-order" too. Between those, I can easily switch, but in order to get a window which still behaves normally on top, I have
    to manually minimize the offending windows.
    The only cure seems to close the offending windows so far, I've not found anything else that helps.
    Could it be that Windows 7 has a bug that can force an ALWAYS_ON_TOP flag
    onto some windows when restoring from "Show Desktop", or am I doing something wrong?
    More information from another user:
    I use win+d. Issue easy to replicate, Win7-64bit-Ultimate.
    The affected windows (any program) seem to be placed into a separate "Z" group. You can place multiple/many windows into this always-on-top state, those in the affected state will function normally in relation to each other with the exception that: - The group
    as a whole is always-on-top of any non-affected window - The whole group is on top of the taskbar. - The whole group does not respond to (context on taskbar) "cascade windows" or similar commands.
    The fact that the affected windows are on top of the taskbar and otherwise function as "special windows" shows that windows 7 has a hidden "feature" of always-on-top that gets applied with Win+D. The feature appears to place windows in a super window state
    that is on top of the taskbar. The normal group remaining behind the taskbar. (When you click the start menu or context menu of the taskbar, the start menu/taskbar comes to the foreground of the always-on-top group, however this does not revert the affected
    windows, only a temporary takeover until you switch to something other than the start menu/taskbar)
    This is key to finding an answer. How do we get windows to unassign the special status or not do the assignment in the first place?

    It appeared to have cleared by closing all windows and restarting. Initially I could not reproduce the error, then after opening all my working windows, I did indeed reproduce it on any window.
    I almost think it could be initialized with something to do with multiple windows of Chrome, and then the show desktop problem will crop up once one window has it. This was because: After messing around some more with a chrome session saver (session buddy)
    and restoring sessions and getting the super state, I restored and closed the window I was in and now I am again at a place where I can not reproduce the error, even in my "work environment" with some 35 chrome tabs in two windows, plus other programs, file
    locations, remote desktops and a second chrome profile with another dozen tabs.
    So, back to square one with finding the actual instigator of the super state phenomenon.
    Once you actually have the super sate issue, the following will reproduce:
    Ok, I am doing this as I type it:
    Open chrome (to view this website), then Notepad, then Calculator, (could be any windows, but for the purpose of demonstration, follow along with me)
    The windows should function normally, overlap your windows so that you can see the edge of all windows and the Z-order is (from front to back):the browser on top, then the calculator, then Notepad (you should be able to see part of the background windows).
    Now, with the browser on top, press win+d, then win+d again.
    Click on Calculator, then your browser, your browser is now stuck in the foreground. Clicking on notepad will bring the focus to notepad, and it will be in front of the calculator, yet it will stay behind the browser, as your browser is in "super state". (many
    arrangements of switching focus after returning from win+d will create the problem, with the exeption of clicking the desktop, I also noticed that I could not get calculator into super state unless it overlapped my chrome browser).
    Again, this does not seem to work until at least one of your windows is affected. We do not know how to get the initial window, only subsequent ones.
    I will post back if I find anything else.
    Let me know if there is anything that develops.

  • Iphone 5 lock/home button

    My iphone 5 lock/home button has been bugging for months but now they are just not respoding at all. I was in the settings page, then
    when i tried to go back to home screen they wont work. I tried turning it off, rebooting it, plugging it in, nothing works. I even have that little black square  that kets you lock it by touch and not even that works.
    What should i do?

    If i got it in October, but I didnt buy Apple Care, does it still fall under warranty? I dont wanna make the 2 hour trip for nothing. :{

  • Show Desktop Button

    Is there any button in Mac OS X like the button in Windows called "Show Desktop"? I use this button at work all day on my Windows PC and I am always looking for it on my Macs when I get home. Thanks

    Indeed there is.
    You can invoke Expose - on most Macs this is by pressing F11.  (You can go to System Preferences -> Expose & Spaces -> Expose to see which key it is mapped to on your system). This will shove the windows off to the side, so that you can interact with the desktop,  When you are done, just press F11 again.
    You can do the same thing with a 4 finger swipe towards the monitor on a multi-touch trackpad. (Swipe in the opposite direction to get the windows back in their normal places).
    Or, you can use the CMD-TAB task switcher to select Finder. Then press CMD-OPTION-H, and all windows from other applications will be hidden.
    Cheers,
    Rodney

  • Some times when I press the home button to read my finger the screen becomes black and it shows the Apple logo, this take a few seconds to get back the screen and this has been happening even 3 or 4 times in a row!   What should I do?

    Some times when I press the home button to read my finger the screen becomes black and it shows the Apple logo, this take a few seconds to get back the screen and this has been happening even 3 or 4 times in a row!
    What should I do?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • My iphone 4s will not allow me to open any apps that I have downloaded. I have tried a few things but still will not allow me to open. Shows they are open once pushing the home button twice. Please help!

    My iphone 4s will not allow me to open applcations that I have downloaded. I have tried a few things but still will not allow me to open. Shows they are open once pushing the home button twice. Please help!

    Pressing the Home button twice does not show you what apps are running. It shows you what apps were recently used.
    Download a free app from the App Store. Once it downloads, your other apps should work properly again.

  • My ipod touch wont turn on!! i have tried EVERYTHING!!! rebooting , trying to put it in DFU mode , pressing volume , power and home buttons , charging it but nothing works!it doesn't show up in itunes. my warranty is expired. what to do please help!

    MY ipod touch 5 wont turn on. i tried holding the power and home button together to reboot but didnt work. i tried pressing only the home or power button but no response . it doesn't show up in itunes. i tried keeping i in charge but it doent even show the charging icon! it does not show the no battery icon either. i tried leaving it with no disturbance for a few hours but still no luck . it has no response . My 1 year warranty is already expired. is my ipod officially and completely DEAD????

    See if you missed anything here
    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order. The appointment is free. No warranty required
      Apple Retail Store - Genius Bar                              

  • HT5137 I updated to ios7.0.2, when I double click on home button it brings up an app list but when I hold my finger on an icon it won't show any with a minus sign, is it no longer necessary to close apps?

    In ios 7.0.2, when you double click the home button it brings up the icons but won't allow you to show them with minus signs, is it no longer necessary to do this?

    jim96776 wrote:
    is it no longer necessary to do this?
    It was never necessary except in certain unusual circumstances.

  • Is there another way i could turn my phone on? it wont turn on or show me the battery screen to show its charging. i already tried to hold the on and home button at the same time but it does not want to turn on. please help?

    is there another way i could turn my phone on? it wont turn on or show me the battery screen to show its charging. i already tried to hold the on and home button at the same time but it does not want to turn on. please help?

    Device Not Recognised
    For PC
    http://support.apple.com/kb/TS1538
    For Mac
    http://support.apple.com/kb/ts1591

  • HT4623 iOS 6.1 no longer available because you are no longer connected to the internet- this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.

    this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
    is there any other method to download ios 6.1.2.
    my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
    kindly help.
    thanks

    well in thatcase, i need another help .
    thanks for your instant reply.
    i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
    because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone.

  • My iPad 4 is stuck on the connect to iTunes screen.  Have held the home button down while connecting the USB cable to the iPad and its not doing anything, not even showing up under my computer Please Help

    IiPad is stuck in the iTunes connect screen.  I have held the home button down while plugging the iPad in and still nothing.  Hard reset isn't even doing anything.  It's not even showing up under my computer.  Please Help

    Did you get a message that the iPad is disabled?
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Just bought a nano and want to download some of my iTunes library. The "Music" button shows almost all my selections but some albums are missing, yet thos albums appear on the nano icon on my desktop but none of the others. What's happening?

    Just bought a nano and want to download some of my iTunes library. The "Music" button shows almost all my selections but some albums are missing, yet ONLY those albums appear on the nano icon on my desktop after being dragged there but none of the others. What's happening?
    I've read some of the post here that I thought might help but they refer to titles (Music) and triangles in the "Devices" window which are nowhere to be seen when I open the "Devices" window.
    I have iTunes 11.0.3 and Mac OS 10.6.8. Does this make a difference?

    I should mention that, for the first problem, I do make sure that my new tracks are stored in the folder where I told iTunes that my music is in. Also, when I say the cataloging of my library stops short of cataloging all my songs, I have tried leaving the computer unattended for days (my computer's sleep mode is disabled). It always stops before cataloging all of my music regardless of whether I am doing something else while iTunes is cataloging, or if I just let iTunes be the only program that's open during the cataloging process.

  • My ipod all of a sudden blacked out and now it only shows the apple icon. When i press the on/off or home button it still remains with the apple icon. I tried plugging it to my lap top and going to i tunes but it says there is an error in the device

    I was looking through my pictures and when i tapped to see a specific one my ipod blacked out. Now the screen only shows the apple icon and I cant go anywhere. I tried preshing the on/off and home button but it won't work. I even pressed both at the same time for 10 seconds and still nothing... I connected it to my lap top and went to my itunes account but it tells me that the device that i just plugged in has an error. I already tried plugging it back in several times and it still won't work. I don't know what else to do. I havn't had it for a whole year yet so its still insured to the apple company right? at least thats what I heard

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • My iphone doesnt want to start.all it shows is the apple icon.nothing more.i have tried holding the home button together with the lock button.what can i do .thanks

    my iphone 4 doesnt want to start . all it shows is the apple icon.i have tried holding the home button together with the lock button. nothing seems to work . please help.

    Plug the iPhone in with the Wall Charger. Then while plugged in do the Reset again, hold both Home and Power buttons until the iPhone Restarts. This usually begins to happen in less than 20 seconds time.
    If you this does not work you can try to Restore the Firmware on your iPhone. If you decide to do this, connect your iPhone to your computer with iTunes open. Hold both the Home and Power buttons until the iPhone is detected by iTunes in Recovery Mode, this takes about 20 seconds time. Restore your iPhone.
    If this does not work, you can try to Restore the Firmware on your iPhone in DFU Mode. Connect your iPhone to your computer with iTunes open. Hold both Home and Power buttons for exactly 10 seconds, release the Power Button and keep holding the Home Button until iTunes recognizes the iPhone in Recovery Mode, about 20 seconds more time. Restore the iPhone.
    If this does not work and you have Warranty or AppleCare Coverage take your iPhone to Apple for resolution of the problem.

Maybe you are looking for

  • Photoshop CS4, won't recognize new scanner

    Hi all.  I have a new Dell Windows Vista 64 and have CS4, legit on it.  I have installed the Vista 64 driver on this epson 4490 photo scannner.  That all went well.  The computer recognizes it, I can click on the icon on the desk top and bring up the

  • Nokia Communication Centre cannot find my SMS/MMS

    Hello I currently have a Nokia n70, which I am replacing with a new model. However. No Nokia software can find my sms/mms messages so I can take a backup of them. Latest firmware version on the phone:  v 5.0705.3.0.1 Latest version of PC Suite. Windo

  • Show 'Processing' message during Submit ?

    I have a page that has a number of input fields and a 'submit' button. I want a "Processing" page to be displayed while the servlet is processing the submit data request. How do I do this ? I've tried mapping the submit button to some JavaScript that

  • PS6 Spot Healing Brush Tool

    When I use the Spot Healing Brush, I only get dots when I hold and drag the brush, but my friend's PC is making a line

  • Why do I get  this error message "This volume does not support permanent version storage."

    I get this error message when I save a "pages 09" document edited on my macbook pro but saved to my mac mini (over a wifi network). All my Macs are running 10.9.3. My Mac mini is using time machine to back up to a separate hard drive (USB 3 connectio