Choose a directory with FileChooser (or otherwise) ?

Hello,
Is there a way to use the FileChooser (or another JavaFX 2.0) class to be able to select a folder ?
I did find an issue in Jira, but the fix suggested there crashes the MacOS X beta of JavaFX: http://javafx-jira.kenai.com/browse/RT-15070?focusedCommentId=96034#comment-96034
Thanks,
Joachim Haagen Skeie
Edited by: Joachimhs on Nov 8, 2011 3:10 PM

Timely question. There isn't one yet, but it is scheduled for 2.1 release early next year. The proposed API:
void setTitle(String value);
String getTitle();
StringProperty titleProperty();
void setInitialDirectory(File value);
File getInitialDirectory();
ObjectProperty<File> initialDirectoryProperty();
File showDialog(Window ownerWindow);

Similar Messages

  • New FileChooser doesn't allow choosing a directory?

    Am I just missing something obvious? The new javafx.stage.FileChooser class (beta build 36) doesn't seem to allow the user to choose a directory. I.e., I can select a directory in the dialog and click the 'open' button, but it just takes me into that directory within the dialog.
    I'm using Windows 7, Java 7 and beta build 36.

    I suggest you file an RFE on the Jira about expanding the FileChooser API to allow directory selection. But I found that windows user always end beign very confused when presented with a file chooser dialog to select... a directory... It's better to have a tree or list base directory chooser instead.
    The fact that we do not have a directory chooser at hand is a longstanding Swing issue (made an RFE in the early 2000s about that - was replied "use JFileChooser instead", :/). One was supposed to be integrated in SwingX and with future consideration for Swing integration (Romain Guy, Swing Team, circa 2004~2005), it seems it never happened.
    In JavaFX 1.3 for some time I've used a third party Swing control that used to do that and after a while I've built a prototype one using ListView and TreeView (but as you know unfortunatly TreeView was not working great in those days) + there's always the matter of the weird tree structure you end up with on Windows (with desktop as the root of everything which makes properly expanding the tree to show initial selection difficult - especially since the base nodes bear i18n names). Anyway, as of 2011, we're still missing a proper directory view.
    When/if time allows at my job (and it looks unlikely these days), I'll file a couple of RFE about providing FileView and DirectoryView (with Tile, List, Table and Tree display) and reworking their FileChooser.ExtensionFilter API (already mentionned in another message) so we can at least finally have a proper control to browse through a file system, build file dialog or even a file browser...

  • Choosing a directory through Sun Studio

    I want to Choose a directory that is not zip.... containing mutilple file
    Is there any component for choosing Directory...

    Are you wanting to do this in an application you're creating?
    If so, see this tutorial about using File Choosers (which can list directories, also.)
    http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
    If not, you need to give a better explanation of what you're trying to do as your statement doesn't make any sense..

  • Relative path for Download directory folder.I created a firefox profile and i wanted to use this profile in multiple machines.I wanted to use a relative path for download directory with respect to the profile folder.I need this on Linux machines

    I have a use case where I need to use different download directories with different firefox profiles.I need to use this profiles in multiple linux machines.
    I need to have a relative path to my download directory with respect to the profile folder.
    Ex: I have a selenium test which opens a website and downloads it to my machine.I want this downloaded file to go into some specific folder relative to this profile folder.How do I do this??

    That is not a practically empty xinitrc - that file only needs one line: exec WM.  Other things are entirely optional, and some of them very useful, but I'd encourage you to stick with the simplest xinitrc that will do what you require.
    Is slim involved?  Probably.  That is the source of many problems.  But to start narrowing this down, I have 3 suggestions:
    1) temporarily (at least) change your inittab to default to runlevel 3 ... actually, is it currently set to 5 or 3? if it is currently 3 that would explain why slim doesn't start.
    2) at a tty in runlevel 3 use "xinit" instead of "startx".  Startx is fine most of the time, but it is essentially just a complex wrapper for xinit.  That complexity can often iadd useful functionality, but it *always* makes troubleshooting more difficult.  So for now just use a vanilla 'xinit'.
    3) remove dbus-launch from your exec line in xinitrc.  This is done by console-kit so it is redundant and potentially problematic.  Further BOTH of these are taken care of by slim, so I'd even suggest getting both a jump start on being ready for slim and simplifying troubleshooting by removing both of them.  Just make that line "exec openbox-session"
    Edit: adding one more:
    4) temporarily switch out openbox-session for openbox.  I suspect the reason feh's setting of the background is getting overridden is due to a script or setting in openbox's autostart settings - many of these are only invoked when "openbox-session" is called, while "openbox" starts *just* the window manager itself.
    Last edited by Trilby (2012-10-03 17:30:36)

  • UPLOAD A DIRECTORY WITH N NUMBER OF DATA FILE

    Hi Experts
                               In my scenario i need to upload a directory with n number of excel file from my presentation server to application server . Please do help on that (note : directory with many file not an single file )

    Hi,
    Here is the Code for List of Files from the Specific Directory to Application Server(SAP)..
    REPORT  ZDIRFILES    .
    PARAMETER: p_fdir            type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
            include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
      call function 'RZL_READ_DIR_LOCAL'
           exporting
                name     = p_fdir
           tables
                file_tbl = it_filedir.
    List of files are contained within table it_filedir
      loop at it_filedir.
        write: / it_filedir-NAME.
      endloop.
    Girish

  • Moving a file from a directory with the same name to the parent

    Hello,
    I created a directory with the name a.txt and put a file in there called a.txt.
    (This was an accident, I had originally tried to just save a file a.txt in the a.txt directory's parent directory.)
    So I had parent->a.txt->a.txt.
    Then using finder I dragged the a.txt file into the parent directory.
    The replace file dialog came up, as I would expect, to replace the a.txt directory with the a.txt file.
    I clicked replace.
    Then both the directory a.txt and the file a.txt went missing.
    They're not in the Trash.
    The a.txt file is not in the parent directory.
    I understand that there is an underlying process behind moving/replacing/etc., and I understand what I was trying to do is unusual, but this is just crap design.
    PS: I can replicate the problem.
    PSS: I'm using Lion.
    Ian

    Yes.  I also reproduced this.  Looks like a bug.
    You can file a bug report at: http://www.apple.com/feedback/macosx.html

  • Making a Directory with alumni information...Templates to use?

    I am making a directory with alumni information for my high school reunion. In one part of the book, I want to list bio information along with a current pix. In the back of the book, I want to alphabetize everyone's name and address and then cross-reference which page their bio is on. Can anyone tell me how to go about doing that? I want the end result to be a booklet (with 81/2 inch by 11 inch paper folded in half). I tried using one of the Pages templates (I believe it is the one for cooking because it was the only one I could find in the brochure section that was not a tri-fold). I am finding that it took so long to put just one page together. I need to be able to do it rather quickly since there are over 100 people already attending and I can't take forever to do this project. I would appreciate any input from anyone on this subject.
    Thanks in advance.

    I would start on a Word Processing blank document, Not a Page layout document. I'd use A4 paper size but I guess you'll have to use the US letter size.
    When I have created the bios of the people I would use a Heading style for their names. By doing this I can make a Table of Contents of there names. Don't forget adding page number.
    The table of Contents (TOC) will be created in the beginning of the brochure. Select the TOC and copy the content. Open TextEdit and Paste. To alphabetise you need to get the free app WordServices from [http://www.devon-technologies.com/products/freeware/services.html]
    do the alphabetising and copy and paste the text in the end of your Pages document. The TOC is the very last thing you should do before making the booklet.
    Save the document. I hope you have done that many times during the process creating it. And also save it as a PDF document.
    To make the booklet get either the app BookLightning 1.7.2 or Create Booklet PDF Service 1.1
    These application will take your document and create a booklet with the right pagination.

  • Add a new directory with hyphen (-) in the domain name

    Dear All,
    I'm trying to add a new directory with hyphen (-) in the domain name (default domain *.onmicrosoft.com). As a result I keep getting a validation error: "The domain is not unique". I've tried several
    combinations with really awkward words and a hyphen. Such domain names must be unique. I think that the error message is misleading.
    Is it a well known behavior? Is it possible to use a hyphen in the domain name?
    Thank you for your help,
    Artem

    Dear Arvind,
    Thank you for your effort and time in validating the described behavior.
    According to the
    Regexp for subdomain question on SO, 'Each subdomain part may contain hyphens (dashes), but may not begin or end with a hyphen'. That been said, the validation error, on your screenshot is appropriate. On the other hand, the validation error
    with a hyphen (dash) in the middle is misleading.
    It's not a big deal, since people most likely use a custom DNS name anyway.
    Kind regards,
    Artem

  • Can't delete file or directory with accent character

    I have a directory within my iTunes folder structure that has an accent character in it which I am trying to delete.
    If I do an ls on the directory I get this:
    ls -al ls: Radiů Disney_ Jams Vol. 2: No such file or directory
    total 0
    drwxr-xr-x 3 scott staff 102 Jul 29 13:16 .
    drwxrwxr-x@ 21 scott staff 782 Jul 29 13:24 ..
    I've tried rm -rf * but after that I attempt an ls -l I still get: ls: Radiů Disney_ Jams Vol. 2: No such file or directory
    Any way to delete the directory with offending filename? If I attempt to delete the parent directory I get a "Directory not empty message"

    macwiz,
    I tried the SMB path as well but the files were acting as though they were written with indelible electrons. I remembered that the files were originally created and deposited into the folder from a windows machine. I logged into my folder from the same machine and was able to delete them without any problem.
    I appreciate your help and have saved your suggestions (I'm sure they'll come in handy).
    cheers

  • Integration of MS Active directory with SAP Identity management

    Hello
    I am implementing SAP identity Management  7.1with external tools MS active Directory with Single sign on using SAP IDM . Is there any documentation as to how do I connect SAP IDM with MS AD with the roles and their user provisioning process .
    Also does anyone have a architectural work flow template  on this process .

    Hi
    I guess, using VDS you can achive this. ref the LDAP connection part.
    https://websmp203.sap-ag.de/~sapidb/011000358700001449652008E
    https://www.sdn.sap.com/irj/sdn/nw-identitymanagement
    Regards
    Shridhar Gowda

  • Create directory with FileOutputStream

    I'm on a directory dir1.
    I write
    out = new FileOutputStream(./dir2/doc.html);
    and when I execute I have :
    ./dir2/doc.html : no such file or directory
    of course this directory doesn't exist.
    Is it possible that the constructor create the directory ?
    Or must I do anything else ?
    What can I do ?
    Thanks

    Welcome to the world of computing......
    What you need to do is check for exception like the one you mention and take appropriate step(s) to remedy the situation -- in this case make the directory with something like:
    boolean x=new File(path).mkdir();
    V.V.

  • HT1296 To sync contacts with my computer, I choosed "Sync Contacts with" within iTunes for Windows Outlook and Its suncking but contact is not showing in the Oulook contact.

    To sync contacts with my computer, I choosed "Sync Contacts with" within iTunes for Windows Outlook and Its suncking but contact is not showing in the Oulook contact.

    Do changes/additions to the contacts list in Outlook appear on the iPhone?

  • Photoshop replacing home directory with tilde~

    whenever I run an app.activeDocument.fullName (or app.activeDocument.path), it repalces the home directory with a tilde(~), so
    "Macintosh HD/Users/myname/Desktop/filename.psd"
    becomes just
    "~/Desktop/filename.psd"
    can anyone think of a way to get what's behind that tilde and get the FULL PATH of the file??
    THANK YOU

    $.writeln(app.activeDocument.path.fsName+'/'+app.activeDocument.name);
    Paul, beat me & it's better…

  • How to choose gaming laptop with right Graphics for your demand?

    Most users buy a gaming laptop because of playing games, but do you have clear picture of these GPUs performance and comparison in mind before you choose it?
    Here comes the check list about the GPU Pipeline(Cores) and memory info as below table, it's the key index related to the 3D benchmarks and gaming performance, and it's easier for all users to check if the GPU/Graphics performance is good or bad compare with last generation graphics.
    Normally we know that GTX780M/770M is enthusiast level for ultra gaming, and GTX765M/760M is for high performance gaming, GT750M/740M is performance level HD gaming, but what's the gap and difference of these graphics?
    Analysis about 3D Mark scores
    For the 3D Mark Vantage, it's the benchmark reference based on DirectX10 effects and rely on more CPU performance. According to the score rated, performance level should over P7000 score, high performance level should over P13000 score, extreme performance level must over P18000 score. So you could see that GTX780M, GTX770M, GTX680M and GTX675MX were on the top of the enthusiast level graphics with great performance.
    Then we look on the 3D Mark 11 tests, it's pure DirectX11 gaming performance test, more rely on GPU/Graphics performance, and less impact from different CPU, so you could see that 3D Mark 11 is more demand on graphics performance. Performance level need to over P2000 score, High Performance level need to over P3000 score, and to be enthusiast level will need to over P4000 score. Take a look on GTX780M, it's top performance and leading far from other graphics performance, GTX770M and GTX680M are also great to pver P5000 score as enthusiast level graphics. GTX765M got same score as GTX675MX, so you could see the improvement of the GTX7xx series from GT6xx series.
    Same situation with 3D Mark Fire Strike, the latest benchmark program from Future Mark, it's also the heavy loading 3D test program of DirectX11 effects, so you could see the score was similar but lower to 3D Mark 11 P score results.
    Then we look at AMD platform with GX60/GX70 series from MSI, it's all over P4800 score, so the gaming experience is really better than enough, and you could take it with Eynfinity mode as a gaming machine with 3 monitors surround view as well.
    Something need to be noticed
    There is a trap from different memory chip difference, we take a look on the GT750M with 2 columns, the top one comes with GDDR5 and below one comes with DDR3, you could see the GDDR5 version is over 10% faster than DDR3 version, that means 4GB is not help on the performance enhancement, please choose MSI GE series laptop with GT750M GDDR5 will be much better for gaming.
    Another part, you could see both Intel embedded graphics HD4600 and AMD embedded graphics AMD8650G was faster than GT720M and GT630M, so anyone who wants to buy the laptop with GT720M/GT630M graphics or under, it's a kind of waste on the performance and price point of view, you rather to buy an UMA version laptop without low performance graphics to have less heat, lower power consumption and more battery life indeed.
    Conclusion at last
    Lets come out a performance summarize for your purchase reference.
    MSI GT series with GTX780M/770M is the best choice for 1920x1080 Full HD resolution and ultra detail setup gaming experience. That's why professional gamers always buy MSI GT series with finest graphics!
    Choose GE series or GS70 with GTX765M/760M is suitable for 160x900 HD+ resolution and higher detail gaming experience, if users wants to play with 1920x1080, must sacrifice the detail to become medium, for some heavy game titles even need to set low detail.
    If you are not powerful graphics demand users, you could choose GE series with GT750M or GP series with 740M, is suitable for 1366x768 HD resolution and high detail gaming experience, or runs at 1600x900 with lower detail setup. Sometimes GT740M even need to adjust the detail become medium or low to make the game smoother to play in heavy loading games.
    Remark: All benchmarks will have +-5% score range depends on different test status and conditions.

    WOW ~ the most detail analysis I've ever see ,  gamers just follow the above expert's suggestion ,  you will buy excatly what you need !!! rocks !
    - best enthusiast and ultimated gaming without budget limitation, just choose GT70/GT60 series
    - gamers need super mobility should choose GS70 series
    - the best cost/ performance ratio product should be GE70/GE60/GE40, or GX70/GX60 ( HD8970M also great for ultimated gaming)
    - if you are on-line gamer or multi media professional expert, GE or GP series is also great for you
    - GS is also great with super slim body, professional expert for movies and music studio must take into consideration...

  • How can I get authentication and authorization through OS X open directory with the Sun ZFS STOR ZS3-2

    how can I get authentication and authorization through OS X open directory with the Sun ZFS STOR ZS3-2
    I have configure NFS, I need help configuring the share that I created in the Sun ZFS STOR ZS3-2 to connect with the OS X Open Directory

    Hi,
        You may  try checking the help page for ldap configuration :
    https://<Appliance_IP>:215/wiki/index.php/Configuration:Services:LDAP
    ZFS Storage supports LDAP, NIS, AD as directory service.
    Hope Open Directory is also based on LDAP and may work in similar fashion.
    Thanks
    Nitin

Maybe you are looking for

  • My PSE 9 crashes every time I try and move something onto the layout I'm working on.....help!

    here is the report it sends me..... Process:         Adobe Photoshop Elements [377] Path:            /Applications/Adobe Photoshop Elements 9/Adobe Photoshop Elements.app/Contents/MacOS/Adobe Photoshop Elements Identifier:      com.adobe.PhotoshopEle

  • CLASS-PATH troubles in JARs

    I'm having trouble with my Jar files. I have all the classes associated w/ the project in jar files in a lib directed. I then jar that directory w/ the main class file along with some extra directories (images etc). When I run the jar file created us

  • Page down  Page Up

    I know that the space bar pages down in Safari, is there a keyboard shortcut for page up?

  • T400 will not properly reboot

    I recently re-installed windows XP on my T400. I went though and installed all the drivers on the list for video, wifi, etc. Everything seemed to work fine, till after I installed the Intel Chip Set drivers. Now my laptop will not reboot itself when

  • Authorization to delete

    Using transaction PU00 giving the user authorization to delete an employee. I want to permit the user only to delete the employee. I don’t want to give a permission to read or write or update. Only delete. How can I do it