Disable file browsing

Hi, i have this kind of problem.
I need file chooser which will not have file browsing.
I need this for using in specific way, like open directory and collect file from there. User must not be able to change current folder in that file chooser.
I know that JFileChooser has method void setControlButtonsAreShown(boolean), but that just disables Ok and Cancel button.
Is there any way to do this?
And just to say, i can make some kind of list view with files in needed folder, but i would like to have this with same look and functionality of JFileChooser.
Thank you in advance.

For JFileChooser.getComponents() feed the array to this method:     private void hide(Component[] comps) {
          for (int i= 0; i < comps.length; i++) {
               if (comps[i] instanceof JPanel)
                    hide(((JPanel)comps).getComponents());
               else if (comps[i] instanceof JToolBar)
                    comps[i].setVisible(false);
kind regards,
Jos
ps. This idea isn't mine so I'm innocent but I do like (and use) the idea ;-)

Similar Messages

  • How to disable File Browse... item including browse button

    Hi All,
    How to disable file File Browse... item including browse button based on Apex Item Value.
    thanks,
    nr

    Hello Trent,
    >> Does the read only attribute in 4.0+ of the page item not suffice?
    It all depends on your actual scenario.
    If the show/hide condition is known pre-rendering, you can use the Application Builder ReadOnly attribute. In this case, the APEX engine actually creates a simple text display so the input field and the browse button will not be displayed at all (and not just grayed out). However, if you need to toggle the status of the item, like in the example, or the status depends on a user input, using the disable attribute is much simpler (If you start with ReadOnly item, you will have to create the file browse item yourself, using JavaScript, or submit/re-direct the page so it will be rendered with the file browse item).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Remove or Disable File Browser in PC Suite

    Hi
    Our corporate policy is that USB storage devices can't be used on PC's in our network. However, because file-browser is included in PC-Suite I'm not allowed to use my phone either. Any idea if aspects such as File Browser, Music Download etc, could NOT be installed, so that ONLY SYNC features are available?
    Thanks

    Can you install PC Suite and then remove "not allowed" PC Suite applications from C:\Program Files\Nokia\Nokia PC Suite 6\ folder ?
    (e.g. if you want to remove Phone Browser, do this: Start > Run > give command:
    REGSVR32 -u "C:\Program Files\Nokia\Nokia PC Suite 6\PhoneBrowser.dll"
    and then delete that PhoneBrowser.dll file)

  • Disable Local File Browsing?

    Is there any way to disable file browsing within Firefox? I am configuring Firefox in a shared environment and would like to disable a user from being able to browse local storage by using: file://C:/
    Is this possible?

    I did see this post but I wasn't sure how it applied to the current version of Firefox. browser.jar no longer exists. I did find that omni.ja replaced browser.jar
    When I extract omni.ja there are multiple browser.js files that all seem to be located within dev or test directories.
    Has anyone disabled file browsing in recent builds of Firefox?

  • Disable (Gray Out) File Browse button

    To all Apex gurus,
    I am facing a situation when I have a Select List Item - P2_DOCS_CATEGORY (with Display Null enabled) and a File Browse Item - P2_FILE_INPUT and I dont want end-user to be able to click on File Browse (but I want it to be visible, so disabled or grey out state would be perfect) before selecting anything from my Select List (anything but not null state, where my Null Display value is - Select Type - ).
    I was trying this script in HTML Header but apperantly it doesnt work for me:
    function FldEnableDisable(pThis)
    if (pThis == 50)
    $x('P2_FILE_INPUT').disabled=true;}
    else
    { $x('P2_FILE_INPUT').disabled=false; }
    } and
    onChange="javascript:FldEnableDisable(this.value)" in HTML Form Element Attributes
    Any ideas?
    Thanks

    Hi,
    My sample
    http://apex.oracle.com/pls/otn/f?p=40323:6
    I have this on page HTML header
    <script>
    function FldEnableDisable(pThis){
      if (pThis == "%null%"){
        $x('P6_TEST').disabled=true;
      }else{
        $x('P6_TEST').disabled=false;
    </script>And this in Page HTML Body Attribute
    onload="$x('P6_TEST').disabled=true;"Then in item Test Lov HTML Form Element Attributes
    onchange="FldEnableDisable(this.value);"At least it work for me in Firefox 3.5
    Br, Jari

  • Disable autoplay in file browser

    I there a way to turn this off.
    I have about 55 clips that all need the same thing done to them. I'm dragging clips from the file browser to the appropriate spots on the layer tab, but everytime I go to grab a clip, the **** thumbnail at the top of the file browser starts playing the clip and giving my system a hiccup. Very annoying and it's really slowing down my work flow.
    I'm having to drop each clip onto 3 different layers, which takes system resources and I don't have the best GPU on this particular machine. Turning this off means one less drag and click I have to perform to pause the thumbnail and less load time into the layer tab.
    Any suggestions?
    -G

    Heya,
    Open the preferences (Cmd+,) look in the General tab for the 'File Browser & Library' section, and uncheck the 'Play items automatically on a single click' checkbox.

  • How to open a file browser in CRM Web UI without THTMLB tag "fileUpload"

    Hello,
    can someone help me solving this question:
    How can I open a file browser in CRM Web UI without using the THTMLB tag "fileUpload"?
    The THTMLB tag has the disadvantage that after having uploaded the file the file name disappears.
    Thanks a lot.
    Best regards,
    Michael.

    Hello, Michael.
    I've got what you mean now. Seems that this is a standard behaviour of this tag. And it has a background which I can only guess - you press Upload, upload is done, field is emptied shown that it is ready to upload next file.
    I suppose you should handle such situation in your onUpload method. And set some indicator (text field below the fileupload tag, icon somewhere near, disabling fileUpload's bttons etc.) on the screen accordingly.
    For instance, your button "Start import" at the bottom of the window already knows about it (it switches from disabled to enabled when you press "Upload").

  • File browser closes

    Following a recent upgrade to OS X Mavericks I'm having problems with using the file browser when trying to upload a file - example, facebook or Google+ upload image. I click on the appropriate button to open the browser, it opens for a short while, maybe a second or two, then closes before a file can be picked.

    I can confirm a similar problem here. Any instance of using the file browser, it opens up and is fine until I double click on any folder. It immediately closed.
    It still does it with all extensions disabled and just for fun, in safe mode.
    I've restored & restarted. I've also gone for a completely fresh install.
    Drag and drop of files, on pages that support it, work fine.
    I see you had a similar problem during a beta phase but couldn't reproduce.

  • File Browse JavaScript not working

    Hi all,
    Is there away to make the JavaScript events to work for File Browse Item? I want to enable another button when the File Browse has some value.
    Thanks,
    Fadi.

    My bad. In earlier versions of APEX it was possible to get the full path of the item you upload. I think since 3.0 or 3.1 this changed. Now you get only the file name.
    Samare,
    Here, you can find an example for disabling and enabling buttons:
    http://apex.oracle.com/pls/otn/f?p=31517:143
    and here:
    http://apex.oracle.com/pls/otn/f?p=31517:15
    You can see the code for reading the file browse item content.
    Combining the two scripts, you can enable or disable buttons depending on the content of the file browse item.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to set "Files of type" when using a "File Browse" item.

    Apex 4.0.2
    Internet Explorer 7 +
    I have a "File Browse" item on a page and need to limit the types of files display to just "text (.txt)" files. How can this be done? Currently, the "Files of type" list shows "All File (*.*)", "Pictures (*.gif,*.png)", and HTML (*.htm,*.html)". In the best case, I would like to not have the "Files of type" list and have the user just limited to text files. However, adding Text files (*.txt)" to the "Files of type" list is ok.
    thanks,
    William

    Thought i'd do a bit of research after seeing Scotts wonderful ideas.
    So it turns out, IE made the file item read only from version 8, for security reasons. Read more: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
    File Upload Control
    Historically, the HTML File Upload Control (<input type=file>) has been the source of a significant number of information disclosure vulnerabilities. To resolve these issues, two changes were made to the behavior of the control.
    To block attacks that rely on “stealing” keystrokes to surreptitiously trick the user into typing a local file path into the control, the File Path edit box is now read-only. The user must explicitly select a file for upload using the File Browse dialog.
    Additionally, the “Include local directory path when uploading files” URLAction has been set to "Disable" for the Internet Zone. This change prevents leakage of potentially sensitive local file-system information to the Internet. For instance, rather than submitting the full path C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now submit only the filename image.png.To resetting the actual items, suggestions I found were to replace the actual item. So instead of using $s, I just replace the element, with the existing element, causing it to re-initialise.
    var htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function fileCheck(el){
        if(el.value){
            var validFile = false;
            var validExtensions = ["csv"];
            var filename = el.value;
            var fileExtIndex = filename.lastIndexOf(".");
            var fileExt = filename.substring(fileExtIndex+1, filename.length);
            for(i = 0; i < validExtensions.length; i++){
                if(validExtensions[i] == fileExt){
                    validFile = true;
                    break;
            if ( !validFile || fileExtIndex == -1) {
                alert("Invalid Extension. Permitted files must end with: " + validExtensions.toString());
                var htmlContents = el.outerHTML || new XMLSerializer().serializeToString(el);
                $('#P16_BINARY').replaceWith(htmlContents);
    }(obviously, replacing what you need to, to suit your page - i prefer scotts idea of passing in supported file types in the function, so would just pass in an array instead; but this is just for demonstration)
    with an onchange="checkFile(this)" on the element attributes.
    On a slightly un-related note, I found out IE doesn't support the wonderful indexOf function on arrays, that checks for the existence of the value in an array. Sucks.
    Edited by: trent
    Ah well, jQuery is there, maybe i should use that for searching arrays in the future.
    http://api.jquery.com/jQuery.inArray/
    Edited by: trent
    Forgot a demo link, for csv files: http://apex.oracle.com/pls/apex/f?p=45448:16
    Edited by: trent
    Modify function. Didn't work in Firefox

  • File Browser Capibilities needed from CS gone in CS2

    Someone help me to figure out how to adape the Bridge to work like File Browser did in CS. I need to be able to see the image large (larger thumbnail), see the MetaData, then click on the photo to edit it or batch process it. All this disappearing behind Photoshop or lossing the metadata if you make the bridge smaller does not work. Can the bridge be made to stay in Photoshop contained like the File Browser did, so that it can be edited? Or is there a way to get File Browser back? Sorry, I'm not too impressed with this Bridge.
    Thanks!
    N Hodgkins

    >Bridge is a totally seperate app that takes way to long to load!
    It should load in a few seconds if setup correctly. You don't say if you're Windows or Mac, which doesn't help when we try to assist you with Troubleshooting.
    Is Bridge trying to cache files in a folder? If you you need to let it finish.
    Do you have antivirus software running in background? If so try temporarily disabling it to see if Bridge starts quicker.
    If Windows and your starting from a Shortcut then the first tip contained in the FAQ has been known to help, see:
    Ian Lyons, "++ Adobe Bridge - Frequently Asked Questions ++" #1, 20 May 2005 6:40 am

  • Disable "File on my computer"?

    Hi, I am trying to set up a new Contribute site and am in the
    process of customizing the menus and toolbars to suit our needs. I
    am wondering if there is any way to disable/remove the button "File
    on my computer" on the "Insert link" dialog. If anybody knows of a
    way to do this, any help would be greatly appreciated.

    Actually, I would assume they meant it to be used in this
    way, because they have a note about it below that setting. It says
    something like "to completely disable file upload, enter 0 for
    file-size..."
    The way our users edit web pages and upload files might have
    something to do with the problem we're seeing... Our users have
    access to the server shared drive, so they copy-paste files
    directly to the server THAT way (in order to place them in certain
    subfolders, which are always deep in the web site structure, so
    they have to do it manually). They would, then, edit a web page
    through Contribute, and insert a link to the file they added
    recently, by using Browse-Choose method).
    But in my mind, there should be no issue with Contribute's
    own "file upload" mechanism, since it's being "bypassed", in a
    way... Yet somehow, it still complains, intermittently, mind you...
    which is why I'm leaning onto the "bug" idea... :-) Since I saw the
    problem, I turned off the file-size limit, and I haven't had time
    to play with it more... but I really ought to do some more
    testing...

  • Disable directory browsing

    I'm using Lion Server, and would like to disable directory browsing.
    I thought the Server App should have this feature, but it looks like the app doesn't have anything like that.
    So, I'm assuming I need to edit .conf files manually, but don't know which file should I edit.
    Please help me to resolve the problem.

    The different site configuration files are in /etc/apache2/sites.
    According to http://www.felipecruz.com/blog_disable-directory-listing-browsing-apache.php you need to remove Indexes from the Options. Or maybe, if indexes is not present at the options line, you can try adding -Indexes (minus sign before) to the Options line.

  • Error: Unable to locate an image file browser...

    I get the error below when I insert an image element and try to associate a picture to it by either double clicking it or using the browse button in the Draw palette.
    I have looked in my install directory and the "FileSystemBrowser.dll" file is present as well as the "ImageFileBrowserIDL.dll" file, so what gives?
    Running LiveCycle ES2 9.0.0.2.20120627.2.874785

    Hi,
    you should be able to fix that problem by re-registering Designer file browser DLL.
    http://thelivecycle.blogspot.de/2014/02/diy-bugfix-image-file-browser.html

  • Is there a way to see a file browser on iCloud? It says my account is filled up to 5G already and I can't imagine what it moved over to there that was that big.

    Is there a way to see a file browser on iCloud? It says my account is filled up to 5G already and I can't imagine what it moved over to there that was that big.
    I'm wondering if it moved my rhapsody music to the cloud (which is pointless) so I shut off 'document' sharing in case that's the problem, but it's still saying I'm at 5G right now.
    When I go to icloud.com all I see is the dumb app icons, with no clue as to what's taking up that disk space.
    btw, I did not sync photos from the get-go.
    A file browser? please? I need to see my cloud.
    sigh

    Have you enabled Automatic Downloads on all of your devices? This would download all of the books to all of your devices when you download on any device - as long as you are using the same Apple ID and iTunes account on all of your devices.
    Go to Settings>Store>Automatic Downloads>Books>On. When you download a book on one iDevice, it will download to all of your iDevices. This will only work for downloads moving forward from the moment that you turn the setting on. You will have to download the previously purchased books to all of your other devices.
    With iCloud, you can start reading the book on one device and then pickup where you left off on another device.

Maybe you are looking for

  • How did I get better compression when using GPU acceleration?

    Hello,      I was just making a short, 1:12-long video encoded as H.264 in an MP4 wrapper. I had edited the video in Premiere Pro CC, and was exporting through Adobe Media Encoder at a framerate of 29.97 FPS and a resolution of 1920x1080. I wanted to

  • TS3988 Trouble with Syncing with iCloud and my Mac (and iPhone)

    I have moved my @me.com account to iCloud. Now it doesn't sync with any my devices. I can access iCloud itself and have full view of calendars, etc. They are incorrect as they are not synced with my Mac and doesn't update my iPhone.  I have tried to

  • Mail for Exchange Widget N97mini

    Hi everybody I have the following problem with Mail for Exchange on my Nokia N97mini : On the startsite i got that Mail for Exchange Widget, but it only shows my outgoing mails instead of my incoming mails. Can somebody tell me how i make them switch

  • How to use a custom jDialog ?

    Hi to everybody I have a little custom jdialog with only a jTextField inside. I'd like to know how to call it from another JFrame and then read the text which the user have written. Any advices ? Thank u in advance and greetings from Italy Andrea

  • Unable to download during pdf-Word conversion

    at the tail end of the process (converting a pdf doc to Word),  I am unable to download the doc.  Why?