File Chooser in a Panel - please help

Hello!
I am implementing a FTP program as part of an assignment. Can you please tell me how I can get a File Chooser like interface to the files on the remote computer? Can the existing JFileChooser be modified to support this and also can it be embedded in a panel rather than opening in a separate dialog box? Is there any way to get drag and drop support in it?
Please do help
Thanks
Dilip

Hi!
Actually, you can use JFileChooser for remote filesystems. I've implemented it once using JDK 1.3.1 (accessing a remote Linux machine over RMI in an applet):
(1) Create your own subclass of java.io.File, hooking all methods that actually access the filesystem (isDirectory, getSize, ...) to your ftp-connection. (That's the main work, about 50 methods to overwrite, but you can skip many, e.g. createTemporaryFile).
(2) Make your own subclass of FileSystemView to deliver objects of your File-class instead of Sun's.
(3) Initialize JFileChooser with this FileSystemView.
You may also take a look at
http://www.crocodile.org/listok/2/WhatDoesFileSystemViewView.shtml .

Similar Messages

  • My software is STUCK on "Retrieving current session status" What is this and how do I fix it? i am not able to convert any files at all!! Please help!

    My software is STUCK on "Retrieving current session status" What is this and how do I fix it? i am not able to convert any files at all!! Please help!

    Hi JulietaQ,
    In order to help you better.
    Please let me know which application or Service of Adobe you are using. If this is subscription i would request you to log-out and log-in back and let me know if that helps.
    ~Ajlan Huda

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help.. Thanks in Advance

    Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help..
    Thanks in Advance

    This is not a Java problem, this is a WEBBOT problem.
    I suggest that you research the topic in your FrontPage help files.
    Yes, we do know how to solve this problem using ordinary HTML and JSP. The sample code that you've posted implies that you are looking for an extremely different solution. To put it another way, it looks like you're logging onto the Federal Aviation Administration's forums and asking them how to go from Chicago to New York by train.
    But in any case, if you can't find the information in FrontPage, I'm 100% certain that if you went to www.microsoft.com and searched for FrontPage and downloads, and skipped the results that actually want you to download FrontPage, you'll get some sample code.

  • I have a few wedding projects(1-2 hours)I am trying to export at full hd quality,than burn in idvd.After rendering for 8hrs I receive error code that states "file is too big". Please help? compressing tips without losing quality?

    I have a few wedding projects(1-2 hours)I am trying to export at full hd quality,than burn in idvd. After rendering for 8hrs I receive error code that states "file is too big". Please help? compressing tips without losing quality? or any other exporting alternatives?

    Hey Z,
    Thank you for the tip on exporting by media browser (large) from imovie. But of course, if it's not one thing it's another. Now that I figured how to export a large file from imovie, I have an idvd issue. I followed the instructions for burning from idvd and changing the encoding to professional quality and the burn speed to x4, but I am receiving an error that states the following,
    Your project exceeds the maximum content duration. To burn your DVD, change the encoder setting in the Project Info window.
    Project:
    - total project duration: 79:04 minutes
    - total project capacity: 4.327 GB (max. available: 4.172 GB)
    Menus:
    - number of menus in project: 1 menus
    - total menu duration: 0:39 minutes
    - total menu capacity: 37.370 MB
    Movies:
    - total movies duration: 78:25 minutes
    - total movies capacity: 4.291 GB
    I have searched in the idvd forum for similar issues and I am stumped at this point. I have tried deleting the encoding assets and re launching idvd with the changed preferences, and still the same error. I know you mentioned something about free hard drive space available, and I have very little left. 4GB to be exact due to massive hours of non-edited footage. I am not sure if this is why, but I do not recall ever needing free space to burn memory onto a separate dvd. I would be more than happy if I am wrong, and it would be a quick fix. Otherwise, the technical nightmare continues. It's all a learning process and your expertise is greatly appreciated! Thanks in advance.

  • Since updating my iPhone 3GS to iOS 4.3.3 I have been unable to sync my photos! Keep getting the error message unable to sync and 'the required file cannot be found.' Please help?

    Since updating my iPhone 3GS to iOS 4.3.3 I have been unable to sync my photos! Keep getting the error message unable to sync and 'the required file cannot be found.' Please help?

    Try deleting the iPod Photo Cache on your computer.
    http://support.apple.com/kb/ts1314

  • Just got my Mac air and i would like to make a file to store some web addresses for my new business with rodan and fields and I can't do it. Made the file but i cant copy and paste the web addresses in the file to save them. Please help and thank you.

    Just got my Mac air and i would like to make a file to store some web addresses for my new business with rodan and fields and I can't do it. Made the file but i cant copy and paste the web addresses in the file to save them. Please help and thank you.

    Yes - well you have to make the file in a word processing Application.
    You could use TextEdit (it's free) Pages (words only), or Numbers (data base) (they are part of iWorks - and may or may not be free (included) on your machine.  You could use MS Office (it is not free) You could use any Open source word processor that plays well with Office (NeoOffice, StarOffice) they are free.
    That's how you create content and copy/paste URLS. Then you save the file to the desktop. If you are going to make more than one file... you make a folder on the desktop and save, or drag the file(s) into it.
    You attach it to your e-mail client which will compress it and e-mail it. An excellent reference is to use Help, from the menu bar, also from inside any application. From your library or book store the OS X for Dummies has a lot of useful information (you don't read it cover to cover but look up chapters about what you'd like to do)
    You can also make appointments at your local Apple store for individualized help (if a store is nearby)

  • Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!

    Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!

    Hello Smile_333
    The article below will assist with finding things and help increase the hard drive space for your computer. The best way is to have an external hard drive to copy things to if you do not want to delete and loose things.
    OS X Mountain Lion: Increase disk space
    http://support.apple.com/kb/PH10677
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I can't read in Mavericks DVDs and Bluray data burn with UDF system files burn with Snow Leopard, please help me. Thanks

    i can't read in Mavericks DVDs and Bluray data burn with UDF system files burn with Snow Leopard, please help me. Thanks

    They are DVDs with video files from a little more than 2 GB per file, were burned in Snow Leopard, with UDF file system, now that I updated to Mavericks when I try to read disks displays the directory in the finder a moment and then disappear and does not display them show them more. It is impossible to read the discs, but only those who were burned with UDF file system. Thank you for your help.

  • If I already purchased FaceTime for Mac and recently upgraded my HD. How can I retrieve that app again? I found it in my Time Machine back up, but the files won't work. Please help.

    If I already purchased FaceTime for Mac and recently upgraded my HD. How can I retrieve that app again? I found it in my Time Machine back up, but the files won't work. Please help.

    Nope. I do the same exact thing. If you have DVD's and blu-rays you can't download a free application called Handbrake. You can set it to Apple TV2 automatic format and they will come out as playable m4v's that can play I'm iTunes. All you have to do is turn on Home Sharing in both iTunes and your Apple RV and you'll be good to go!

  • When I try to download itunes I get the error message "ITunes.Setup_exe file could not be downloaded  Please help

    I had ITunes installed  up n running last November.  Few weeks ago I started getting error messages and said to reinstall ITunes to fix the problem.  So I went to control panel and deleted all Apple related programs, quick time n Itunes and reinstalled them  But I cannot down load Itunes I get another error message saying  ITunes.Setup_exe.  This file couldn't be downloaded.   I have been trying for weeks now and I am desperated   Please help me

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • "unable to send or receive files"   .... PLEASE HELP!!

    i put in a cd and copy the songs on it to my library. they take a minute or two to download. then i try to autofill my ipod shuffle, and i keep getting the message that it is "unable to send or receive files" what do i do??? please help me!!!

    if your using an audio cd...i assume itunes would automatically open the cd and a box would appear before each song...choose the songs youd like to convert by checking the box..after selecting songs use the right click button and a part of editing your songs will be displayed...and click on to "convert to AAC"

  • One of my files is not in there please help

    I put in my i tunes files from my external hard drive i backed up from my windows computer and one files is not showing up it is my movies i got over time does it have to do with the autrazion please help my apps and music is there but no movies all my stuff is on the phone what do i do with out losing my phone data.
    Justin

    I have the same vertical alignment problem in all browsers with the third-rightmost tab label of a tabbed panel despite repeated attempts to align both manually and with the widget sub element align option.
    Also this tabbed panel in IE9 has a 50% opacity whereas in Chrome and Mozilla its OK.
    Press the horn icon on my website  http://www.timberexpert.gr

  • "Adobe InDesign is shutting down. A serious error was detected. Now file will not open. Please Help?

    I was working on an InDesign file, saved the file and tried to export it. I then got this message "Adobe InDesign is shutting down. A serious error was detected. Please restart InDesign to recover work in any unsaved InDesign documents" - Return to Finder. I am now unable to open the file as the message keeps appearing at every attempt, what can I do, please help?

    The recovery folder is empty and you can start ID normally, correct? But when you then try to open the file that crashed it crashes again? Is that also correct?
    If it is, then it sounds like the file was damaged in the original crash. I would let ID try to recover the file once, just to be sure, though. So emepty the recovery folder again, launch ID from the Dock or the applications folder, then use File > Open... to open the file (and it won't hurt to choose the "as a copy" radio button in the dialog). If ID crashes, restart it without emptying the recovery folder one time. If it crashes again, the file is too damaged to open at all.
    If it does open, immediately export to .idml, then open the .idml file and save as a new .indd with a new name (so you don't overwrite what you have now).
    How much work is invloved in recreating the file? Do you have any older versions?

  • HT1473 "Add Folder to Library" option does not appear on the File menu??? Please help.

    Please help.

    8675-30-9 wrote:
    Hello,  and thanks for your assistance.  however, I do not have that particular menu visible on my screen, I have only the half shaded box in the upper left of the screen and it does not appear in there when I click on it?  Any way to get the menu you are showing to appear on my program?  Is there a setting somewhere I am missing?
    Click the half-shaded box, and choose "Show Menu Bar." 
    That will enable the menu with File, Edit, View, etc.   Then you can proceed as above.

Maybe you are looking for