JFileChooser and Read Only Folders in XP

The following question concerns a Java application, not a applet or web service.
If you are browsing a folder with JFileChooser the button to create a new folder is disabled if the parent folder is read-only. Under XP folders often show up as read only and cannot be easily changed by the user. Even if Windows reports that the parent folder is read only, it does not block the creation of sub-folders in it. I'd like to always make the create folder button active regardless of whether the parent folder is read only or not; that more truely reflects the folder creation permissions anyway and mimics the behaviour of an MFC file browser. How would I do this?
I've even tried to add a listener to the file chooser so that as the user browses to a new directory I automatically change the write permissions of folder, but short of a system command, there's no way to change the write permissions from JAVA so I don't consider this a neat solution.
I'm surprised that I haven't found similar complaints on the net. If you use a MFC file browser the create folder button is active, but a Java file chooser has it disabled for the same folder.
Please help.

What would you say to a new FileChooser? I love java but I'm no fan of Sun's choosers. (See www.MartinRinehart.com, Examples, ColorChooser.)
Email me if you're interested in doing one.

Similar Messages

  • External editors and read-only folders

    I'm trying to use LR4 to work on NEF images I'd imported from a read-only directory. While regular LR4 editing works, using an external editor doesn't because LR4 insists on trying to write a file into that read-only directory. Is there a way to persuade LR4 to put the files it uses to communicate with external editors somewhere else? I intentionally want to keep my NEF directories read-only because they're synced with other programs (which would get upset by LR4 sneaking extra files in there) and because I don't want to accidentally alter anything there.

    Not for secondary editors.
    Only the primary Photoshop CSx can open a file wihtout creating it first. Then tiy ba use Save As from Photoshop to choose another location.

  • How to change read only folders into normal ones...i can't get any filed from my harddrive

    how to change read only folders into normal ones...i can't get any filed from my hard drive..it shows read only

    Which HDD are you referring to, an external one, or the internal SSD?
    If external, which format is it in?

  • Crashes and read-only file systems

    Notice: I apolgize for the long post, I've tried to be as thorough as possible.  I have searched everywhere for possible solutions, but things I've found end up being temporary workarounds or don't apply to my situation.  Any help, even as simple as, "have you checked out XYZ log, it's hidden here", would be greatly appreciated.  Thanks
    I'm not sure what exactly caused the issues below, but they did start to happen within a day of running pacman -Syu.  I hadn't run that since I first installed Arch on December 2nd of this year.
    Setup:
    Thinkpad 2436CTO
    UEFI/GPT
    SSD drive
    Partitions: UEFISYS, Boot, LVM
    The LVM is encrypted and is broken up as: /root, /var, /usr, /tmp, /home
    All LVM file systems are EXT4 (used to have /var and /tmp as ReiserFS)
    The first sign that something was wrong was gnome freezing.  Gnome would then crash and I'd get booted back to the shell with all filesystems mounted as read-only.  I started having the same issues as this OP:
    https://bbs.archlinux.org/viewtopic.php?id=150704
    At the time, I had /var and /tmp as ReiserFS, and would also get reiserfs_read_locked_inode errors.
    When shutting down (even during non-crashed sessions) I would notice this during shutdown:
    Failed unmounting /var
    Failed unmounting /usr
    Followed by a ton of these:
    device-mapper: remove ioctl on <my LVM group> failed: Device or resource busy
    Nother of these errors had ever appeared before.
    After hours of looking for solutions (and not finding any that worked) I was convinced (without any proof) that my Reiser file systems were corrupt and so I reformatted my entire SSD and started anew - not the Arch way, I know   I set all logical volumes as EXT4.
    After started anew, I noticed
    device-mapper: remove ioctl on LVM_SysGroup failed: Device or resource busy
    was still showing up, even with just a stock Arch setup (maybe even when powering off via Arch install ISO, don't remember).  After a lot of searching, I found that most people judged it a harmless error, so I ignored it and continued setting up Arch.
    I set up Gnome and a basic LAMP server, and everything seemed to work for a couple of hours.  Soon after, I got the same old issues back.  The System-journald issue came back and per the workaround on https://bbs.archlinux.org/viewtopic.php?id=150704 and a couple other places, I rotated the journals and stopped journald from saving to storage.  That seemed to stop THOSE errors from at least overwhelming the shell, but I would still get screen freezes, crashes, and read-only file systems.
    I had to force the laptop to power off, since poweroff/reboot/halt commands weren't working (would get errors regarding the filesystems mounted as read-only).
    I utilized all disk checking functions possible.  From running the tests (SMART test included) that came as part of my laptop's BIOS to full blown fsck.  All tests showed the drive was working fine, and Fsck would show everything was either clean, or
    Clearing orphaned inode ## (uid=89, gid=89, mode=0100600, size=###
    Free blocks count wrong (###, counted=###)
    Which I would opt to fix.  Nothing serious, though.
    I could safely boot back into Arch and use the system fine until the system decides to freeze/crash and do the above all over again.
    The sure way of recreating this for me is to run a cron job on a local site I'm developing. After a brief screen freeze (mouse still moveable but everything is otherwise unreponsive) I'll systemctl status mysqld.service and notice that mysqld went down.
    It seems that it's at this point my file systems are mounted as read only, as trying to do virtually anything results in:
    unable to open /var/db/sudo/...: Read-only file system
    After some time, X/Gnome crashes and I get sent back to shell with
    ERROR: file_stream_metrics.cc(37)
    RecordFileError() err = 30 source = 1 record = 0
    Server terminated successfully (0)
    Closing log file.or_delegate.h(30)] sqlite erro1, errno 0: SQL logic error or missing database[1157:1179
    rm: cannot remove '/tmp/serverauth.teuroEBhtl': Read-only file system
    Before all this happened, I was using Arch just fine for a few weeks.  I wiped the drives and started anew, and this still happens with just the minimal number of packages installed.
    I've searched for solutions to each individual problem, but come across a hack that doesn't solve anything (like turning off storing logs for journal), or the solution doesn't apply to my case.
    At this point, I'm so overwhelmed I'm not even sure where exactly to pick up figuring this issue out.
    Thanks in advance for any help

    Did this occur when you booted from the live/install media?
    What is your current set up? That is, partitions, filesystems etc. I take it you have not yet reinstalled X but are in the default CLI following installation?
    If turning off log storage didn't help, reenable it so that you may at least stand a chance of finding something useful.
    What services, if any, are you running? What non-default daemons etc.?
    Does it happen if you keep the machine off line?
    Have you done pacman -Syu since installation and dealt with any *.pacnew files?
    Last edited by cfr (2012-12-26 22:17:57)

  • How to use same view as editable and read only in ADF

    Hi,
    how to use same view as editable and read only in ADF ?? How can we achieve this in TF's ???
    -mrudul

    Hi,
    Steven Davelaar wrote a presentation about this "Building Highly Reusable Taskflows"
    Starting slide 14 is where your use case comes into play
    Frank

  • Missing "illustrations" tab and read-only information

    After a Windows XP Home repair, no illustration tab and read-only information by new music downloads. Have most recent itunes. Can someone help me...please?

    Thanks Gilad, In that case, is there then a way (via a script) that if I leave field 2 as not readonly, so the cursor moves into this field on tab out of field one, that I can reject any input from the user, if field one does not contain any data ? I thought this might be a solution. I have the script with the If Else statement, that sets the value of field 2 to "", if the value of field 1 is also "", but what is the else statement required to accept the value, if the content of field 1 is not "" ?.
    The script preoduces an error, if field 1 is blank, and I try to enter data into field 2 and then tab out of field.

  • Possible to make an item editable for certain users and read only for other

    Is it possible to make an item editable for certain users and read only for others?
    I've been able to accomplish this by taken the select statement that I used to define an authorization scheme, placing it in the Read Only condition of the item. However, I would like to simply reference the authorization scheme to utilize caching, and to help keep things cleaner for future maintenance.
    Is it possible to reference an authorization scheme in an item condition similar to the way another item can be referenced by preceding it with a colon (i.e. :P1_First_Name)?

    Thank you, your suggestion worked.
    It would be nice on a future release of APEX if a drop-down box existed under the Ready Only section that would allow an existing Authorization Scheme to be selected or negated when applying the Read Only attribute to a form item.

  • Can't mount USB disk with the atribute of  fix and read-only

    Hello All,
    I have a usb disk which is set as fix(non-removalbe) and read-only. I tried to connect it to Macbook version 10.4.11 ,but it failed to mount the disk. However, connecting to 10.5.X and windows XP work fine. I am wondering is it a bug specifically in 10.4.11 only ? Could I get any patch for this problem ?
    Thanks,
    Ying

    HI Ying and Welcome to Apple Discussions ...
    Try repairing disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac.
    Carolyn

  • Editable and Read-Only Date Picker have different display formats -- Bug?

    Hi all,
    This is a follow on to a previous posting about getting a Date Picker field to display read-only (Date Picker and Read-Only Condition works on LAST state of element
    Now past that hurdle, I have noticed something about the date picker field when it is displays read-only. Namely, the date format is not the format selected, nor does the read-only date format comply with the format mask in the source section.
    I've modified my small test app to work as intended in order to demonstrate this feature. I also opened it up so everyone can see it <blush>. You can find it here: http://htmldb.oracle.com/pls/otn/f?p=42513: Please navigate to the Update Project tab.
    When a project in Program One through Four is selected (which has a Spec Committed date), the date is displayed DD-MON-YY format. When a project the other Programs (which do not have Spec Committed dates at the time of this writing) are selected, and a date value selected with the date picker, the date is displayed in the anticipated DD-MON-YYYY format.
    Anyone else notice this, or have I just missed something obvious?
    Thanks,
    Petie

    I'm not sure why this happens but to work around it I added this before header process code to the page:
    execute immediate 'alter session set nls_date_format = ''DD-MON-YYYY''';
    Scott

  • Stuck on ISW installation step - Config of other master and Read only

    I'm trying to figure out how to complete one of the last steps for my isw install. Stuck on this step:
    Configure the Sun Directory Server plugin on every other master and read-only replica that manage users under o=myorganization.

    2011 Macs do not have a PPC processor.   They have an Intel processor.  Apple menu -> System Preferences -> Energy Saver allows you to modify the sleep settings.
    Is your data backed up?

  • Read Only Folders

    It may have been discussed before but I haven't found it. I from when I found out about mp3s have always saved Artist-track title release year. It works for me. So why when I rip from Itunes am I stuck with their format. I recently found out that WMP would change the file to what I wanted as said above. Now I find Folders Are Read Only, I went to Properties and changed it. 2 secs later "Read Only" Add to that It got album art from another album, so I deleted jpg's only to have them reappear. I then took files out into "My Music" Directory but they still won't change. Help, This is one of the reasons I won't have i in front of my music devices. Why I got it? It was the only place I could get some music videos that I wanted. Other than that, It's got info that the others hadn't and gave me info that the other's couldn't or wouldn't.

    Sorry New to this forum, I have Windows XP. I went to Microsoft Support to see if I could over-ride the command on the folders. I opened the CMD box typed in what they said, only when I tried to put in the path that's where I got lost, it didn't recognise my commands. Thanks for the quick reply. Hope you can help I have started to rip the albums again, only this time I have to copy paste the info and change dates. I just checked, other folders are showing faded read only as well, but info is being changed by media player except the itunes files.

  • Safety issue: Another user can access some read only folders of mine

    Hi,
    big, serious problem: I had created a simple account user for guest access on my 10.5.7 system. Now i logged into this account, opened the finder and browsed my supervisor's home directory. Some folders i had created in there were readable (including the websites folder). Okay, they were set to readable (read only, not read write) according to the Information Window (CMD-I).
    But when i browsed them i decided to delete a file. I selected the file, hit the delete button and wooosh away it was. What the f..? I wasn't even asked for my supervisor' s password. It just had deleted the file.
    Crosschecking by creating a new folder and moving it into the very same directory revealed i had write access. NOT GOOD! (scream!)
    Anyone had the same shocking experience of OS X being not safe?
    However, after i changed the permissions of the respective folders to "no permissions" and then changed them back to "read only", they at least were read only.
    But hey - how can I tell which folders of mine are really safe? I can't check up every folder if another user on my system has "by accident" write permissions to a folder which reads "read only" in the Information Window.
    Help!
    Fox

    Foxboy71 wrote:
    Hi,
    I've created the first folder as a "Data" Folder *inside my home directory* to archive Downloads of different kinds (Programs / Utils / all this stuff). i wanted to have these Downloads accessible for all Users so that they can get the Data out of this folder. So the path is /Users/(me)/Data.
    The other folder is my "Website" folder, standard OS X.
    The exact Information of the Info Window:
    (Me) read&write
    admin read&write
    everyone read only
    the User account in question is not an admin account.
    now I'm completely confused. are you saying that you can write to this folder from a different account which is not an admin account?? that should not be possible based on these permissions. please double-check and make sure that the other account is not listed as admin in system preferences->accounts.
    also, these permissions are wrong anyway. did you change them yourself? the default permissions on a newly created folder in your home directory should look quite different. log in as your main user and make a folder at the top level of your home directory. what are the permissions there?
    P.S. the unknown user you see is quite normal if you upgraded to leopard from Tiger.
    My account is an admin account.
    Thanks for the reply,
    Fox

  • Restricting changes to reports in "READ-ONLY" folders

    Hi,
    We are using Oracle Business Intelligence Enterprise Edition v10.1.3.4. We have created our own custom folder under the "Shared Folders" item in OBIEE Answers module; and have added some reports to it. The custom folder has been given "READ" access for all the users of the application.
    With this setup in place we see that the users can modify the criteria of the reports in the custom shared folder but they cannot save any changes to the report. Is there any way we can limit the users from not being able to change even the criteria for the "read-only" reports?
    Any help is much appreciated.
    Thanks and Regards,
    Piyush

    I agree. If the users don't need to have any access to Answers, then that privilege should be removed. Not knowing your business rules and the privileges granted to users, I would suggest just allowing the users to just view the reports on the dashboard.
    If you have other questions, I would suggest checking out the following website: http://www.biconsultinggroup.com and click on the Education tab. The BICG University courses that BICG offers are quite extensive.
    Good Luck.

  • Lenovo G510 Windows 8 Read Only Folders

    Hello everyone,
    I just bought a new Lenovo G510, and I installed the Windows 8 that was on the partition.
    The installation went fine, and everything is in order.
    The only problem is that ALL my folders are Set to READ ONLY. Is this something normal for Windows 8 and how can I set it to a different state, since I know that in future that will be a problem?

    hi francis17583,
    If the G510 system came preloaded with Windows 8, there are two ways on how you can restore the system to factory settings:
    Option 1:
    - Turn off the machine and press the OneKey Recovery Button
    - On the Novo Menu, select System Recovery and follow the screen prompts.
        - Link to picture
    Option 2:
     - Follow this guide on how to create a recovery drive
     - Boot from the recovery drive and follow this guide on how to reset the PC.
    I recommend Option 1 in case you don't have a flashdrive (8GB or above) but ensure that you have a backup of your important files as the above procedure will wipe the OS drive.
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Changing multiple Read Only folders to Read/Write

    I have a rather large group of folders that are currently locked as Read Only which I need to change the names...I can do this on a one by one basis, but every single time I have to Get Info, Unlock, Enter Admin Password, Change Permission, Lock - then finally get to the task at hand.
    This is very tedious - is there any way to do the whole group of folders at once?

    Thank you, helpful but I get "You Have Mixed Access"....so I must still have to change them individually - or move all the locked/read only ones into a folder/directory of their own and try again...

Maybe you are looking for