File open/save

I am working on a simple Drawing Tool using Swing. I can draw simple/basic shapes such as rectangle, circle, and text. However, I do not know how to save them in a file or open the file. Can anyone help me? Thanks very much.

Hey,
There is the wonderful class JFileChooser on package javax.swing
;)

Similar Messages

  • How to open File open/save dialog for a file saved in the Appl. Server?

    Hi Experts,
       My requirement is that, there will be a link in my BSP page "Link to BI Report" and when the user will click this link, the File open/save Dialog box will appear for a BI Report file that will be in a fixed path in the Application Server. I have checked with <a href="/usr/sap/tmp/bi_report.csv"> tag but it is not working. The BI report file will be currently in the CSV format. Any ideas about how to achieve this? Thanks in advance.

    If you want to work in tabbed view, do it like this:
    Select the move tool. Go to the tab that contains one of the image files.
    Drag the image over the tab that has the blank document (Keep holding down the mouse button). Wait till that tab opens.
    Drag & drop the image into the blank document.

  • File Open/Save dialog

    Hi,
    One of my pet peeves about Jdeveloper and by extension of SQLDeveloper is that the file open/save dialog does not have quick way to navigate to familiar places on my computer like "My Documents" or "Desktop". For eg., in Word, I can navigate to My Recent Documents, Desktop, My Documents, My Computer, My Network Places.
    I know Jdeveloper and SQLD are also meant for the Unix Platform, but having shortcuts like My Network Places, Desktop, My Computer etc atleast for the Windows based tools would make it immensly easier to find files.
    Something even better would be to allow each person to customize that list of shortcuts he can have in that list.
    Thanks
    Alex

    Yes, this is absolutely necessary for Windows users!
    In a non-java Windows application I can usually put a shortcut to my favored directory in the directory an application might default to, then double-click it and the windows environment is smart enough to move to that directory, and I can save my files.
    Java is stupid in this regard. It thinks you are trying to save the file to the name of the shortcut. I CANNOT stand an application that isn't smart enough to set preferences to default file locations!
    I should also add that I set the USER_DIR to the directory I save all my files in (on my u:drive) and SQL Developer then runs those files without the entire path (I can just put in @a for example) but it is too STUPID to save to this directory!
    Message was edited by:
    user532351

  • Codesigned Projector and BuddyAPI (or other File Open/Save Dialogue)

    I noticed that with the Buddy Xtra, if baGetFilename call is made when an application is Codesigned, it will crash.
    Actually ANY attempt to use any file open/save dialogue attempt in a Codesigned application will not work.
    Has anybody found a work around for this?

    Hi,
    Did you found the solution to this? I'm also trying to do something like you , but I got stuck up in a very primitive stage than you. I'm not getting how I can make that File Download window to appear. Can you help me please.
    Thanks.

  • Mavericks freezing on file open/save

    Having upgraded my iMac (24 inch mid 2007) to Mavericks several non Apple application that tries to open a file open/save dialogue box freezes when the dialogue is attempted to be displayed.
    Main application that is failing is open office but I have written an application in XCode that also fails.

    If you're having problems with freezing in the FILE -> OPEN dialog run this command fron the terminal.
    sudo update_dyld_shared_cache -force
    That seems to have worked for me.
    In this case, the freezeing and/or beach ball of death has something to do with dynamic links being corrupted.  This command clears them out.

  • Gray Sidebar Icons, Slow Application File Open/Save in OS-X 10.7

    I hate the gray sidebar icons in Mac OS-X. I am a very visual person and every clue, including color, helps. I don't understand why Apple has found it necessary to take a giant step backward in time. Perhaps soon they will reintroduce black and white monitors.
    Anyway, I downloaded a pluging that restores colors to the finder windows, but not the application file open/save dialogs. Also, many times the application open/save dialog windows are slow to load the sidebar window; i.e. I can't do anything until they load the the folders, files, and devices available to open.
    Does anyone have a fix for this? Does anyone know if Apple plans to restore colored icons?
    Thanks - Bill

    bmagargal wrote:
    Also, many times the application open/save dialog windows are slow to load the sidebar window; i.e. I can't do anything until they load the the folders, files, and devices available to open.
    Try rebuilding Finder prefs....
    Go to your Finder "Go" menu hold the option key and choose Library. Then go to Preferences folder and trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.)
    EDIT: Could it be whatever app you're using for the FInder windows that's causing that slowness?

  • File Open/Save dialog Restrict the user path selection Is there any way?

    Hello,
    Is there any way by which we can restrict the user from selecting the path from the Folder Browser/ File Open/ File Save dialog boxes?
    For example, I have a list of paths & want to allow the users to select from those paths or their sub folders. Is there any way to achieve this?
    Thanks!
    -Vinay Pugalia
    If a post answers your question, please click "Mark As Answer" on that post or
    "Vote as Helpful".
    Web : Inkey Solutions
    Blog : My Blog
    Email : Vinay Pugalia

    Hello Vinay Pugalia,
    >>For example, I have a list of paths & want to allow the users to select from those paths or their sub folders. Is there any way to achieve this?
    As far as I know, starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the
    Common Item Dialog:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms646960%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    You could have a try to restrict the value of “look in”(shown in the opne dialog) and “Save in”(shpwn in the save dialog). If you want an example about the usage of this API, you could post a code sample request to:
    https://code.msdn.microsoft.com/site/requests
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Handling IE9 File Open Save Cancel information bar.

    I am automating a webpage using IE object. I am able to fill in the forms and click a link which downloads an excel file.I need to handle the information bar(Yellow popup) "Do you want to open or save the file" on File download in IE 9 using excel
    VBA . I need to click save as option. In IE8 i was able to handle the file download dialog box using windows handles. Could anyone please help in achieving the same in IE 9 ?
    I also tried for windows handles which does not help me as the open save buttons are not detected as child windows.
    Thanks in Advance.

    You can try the solution in this thread:
    http://stackoverflow.com/questions/26038165/automate-saveas-dialouge-for-ie9-vba

  • LabVIEW 2012 crashes on different File Open/Save dialogs, if last working directory no longer exists

    On several Windows 7, 64 bit machines, if I open LV2012 SP1 f1 64 bits, create a VI and save it on a directory, exit LabVIEW, delete the directory where I saved the VI, restart LabVIEW and do a File/Open, LabView goes puff and disappears.
    Sometimes it happens on File/Save As.  To fix this I have to double click on an existing VI on Explorer, save it, and then after exiting and restarting LabVIEW I can do File Open again.
    I do have Classic Shell installed on all the systems, but even after uninstalling it and rebooting the machine, the behavior is the same.
    I tried removing the file from the list of last opened files in LabVIEW.ini but that doesn't do the trick.

    Not sure if this is related or something else, however I now have a VI on my desktop that if I double click on it brings up LV 12.0.1f3/64, which opens and shows me the file.  If I then do File/Save As/Rename and hit Continue, LV crashes.
    Error is: Exception: Access violation (0xC0000005) at EIP=0x000007FEFC2DE3C4.  I have an about 200 KB dump file if anyone wants it, as the Send button on my error report is disabled and help just tells me to contact my administrator, which is me (and I configured the VLM to allow users to do that, stop and restarted the VLM but still no go).
    Lvlog.txt is
    #Date: Wed, Aug 21, 2013 3:27:32 PM
    #OSName: Windows 7 Enterprise Service Pack 1
    #OSVers: 6.1
    #OSBuild: 7601
    #AppName: LabVIEW
    #Version: 12.0.1f3 64-bit
    #AppKind: FDS
    #AppModDate: 05/29/2013 21:55 GMT
    #LabVIEW Base Address: 0x0000000140000000
    <DEBUG_OUTPUT>
    8/21/2013 3:27:41.720 PM
    Crash 0x0: Crash caught by NIER
    File Unknown(0) : Crash 0x0: Crash caught by NIER
    minidump id: 71bcb82e-95ba-41ca-884d-efe3b7fc1779
    ExceptionCode: 0xC0000005�r
    </DEBUG_OUTPUT>
    0x0000000141DBE41B - LabVIEW <unknown> + 0
    0x0000000141DBEA62 - LabVIEW <unknown> + 0
    0x0000000019C47D1B - <unknown> <unknown> + 0
    0x000000000293A7E0 - <unknown> <unknown> + 0
    0x0000000000424FB0 - <unknown> <unknown> + 0
    0x0000000001000000 - <unknown> <unknown> + 0
    0x000000000000000F - <unknown> <unknown> + 0

  • File Open/Save Boxes of SQL- Developer

    I am not aware if these points are already discussed or on features list.
    1) I could not find how to set default directory where SQL Developer will go directly when I am opening new file.
    2. Also as far as I experienced SQL Developer does not remember the last path/directory I have opened file from.
    3. I don't know difference between File Menu -> open and right click in the worksheet and open.
    But the files opened via right click does not go to recently used file list in the file menu. Is this expected?
    4. When I export the data to file. there are two points.
         a) Last path is not remembered so I have to go to the path every time.
         b) SQL Developer comes with the name null.csv
         The practical problem I face is after I go to whatever path I need I give some file name. But if I don’t give the extension then no extension is there to the file it created. I think most will expect to have automatic extension. I don’t know if I am expecting too much.
    Regards
    Sanjeev

    Hi,
    1. Lots of Windows users who are craving for this, let's hope it gets into v1.1. Perhaps the default script directory (accepted for v1.1) can be used.
    2. They claim it does, however only for the same opened tab. Duh.
    3. Might be intentional, but I agree it should be added.
    4. a) Bummer, isn't it?
    b) I agree. Suppose it's like this because of the multi-platform capability.
    If you notice missing features or want to vote on other people's requests, there's the SQL Developer Exchange, at http://sqldeveloper.oracle.com .
    Have fun,
    K.

  • File Open/Save Dialog box

    Dear Friends,
    I have a unique problem, I developed a form (in Oracle Forms 6.0), utilizing the Forms "GET_FILE_NAME" built-in to activate the FILE Open Dialog box.
    It is working fine if I execute the form in WINDOWS-NT environment.
    But the same form, when I web deploy it and run it under both NETSCAPE or INTERNET browser
    the "GET_FILE_NAME" built-in fails to get activated, i.e no File Open Dialog box appears on the browser.
    Any Clues ??
    Thanks in advance for your suggestions.
    Mohammed R.Qurashi
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by rqurashi ():
    Dear Friends,
    I have a unique problem, I developed a form (in Oracle Forms 6.0), utilizing the Forms "GET_FILE_NAME" built-in to activate the FILE Open Dialog box.
    It is working fine if I execute the form in WINDOWS-NT environment.
    But the same form, when I web deploy it and run it under both NETSCAPE or INTERNET browser
    the "GET_FILE_NAME" built-in fails to get activated, i.e no File Open Dialog box appears on the browser.
    Any Clues ??
    Thanks in advance for your suggestions.
    Mohammed R.Qurashi <HR></BLOCKQUOTE>
    Mohammed,
    the file open dialog you used with winnt is based on the windows api, wich does, of course, not work in a java applet.
    If you want to use file access from within webforms, you have to extend the forms applet with your own java classes. To do this, you can use the PJC mechanism forms provides (pjc=pluggable java components). Furthermore, if you want to do things like open files on the client (wich are not allowed for java applets) you have to sign your java classes. These things seem to be very complex (and they are), but I've done this work successfully. If you need more information, look at at technet, there are lots of white papers and examples.
    null

  • The "Recently Used" entry in the file open/save dialog

    The file selection dialog (eg: save/open/etc) on gtk applications has a "Recently Used" option:
    Over size imaged reduced to link
    This has generally not shown any options for me (for some reason, firefox suddenly showed a single entry this time).
    I find no use for it either, so rather than having it list recent entries I'd like this option gone (or at least stop being the default!), and the last-used (or maybe just my home) being shown by default.
    Any hints on how to disable this? What about the "Search" option just above it (equally non-working, and equally undesired by myself).
    Moderator edit:  Converted over sized thumbnail to text.  (Hint:  Your img embedded in a url was perfect -- except the image should be a thumbnail, not the full sized image.  Feel free to edit this post and remove my redaction if you want to use img tags with a small thumbnail)
    Last edited by ewaller (2015-04-14 04:23:22)

    hoschi wrote:Your mostly empty "recent" location is probably caused by two circumstances. Firefox is still using GTK2 (and it seperate caches?) and your not using GNOME (as it looks like).
    No, I'm not using gnome. And this was actually the first time I saw this dialog non-empty. However, it's not related to gtk2 or gtk3: I see the same behaviour on gtk3 apps.
    I all honesty though, I don't care about recently used being populated because I anticipate having the same results you've just described.
    thisoldman wrote:
    At work, I find the recently used locations useful. At home, they are not.
    Firefox Menu:
    ⁣    Edit >> Preferences >> General >> Downloads >> [radio buttons]
    Thanks, I'm aware of this, but this merely covers the firefox download option (firefox seems to actually remember the last used), not all gtk apps in general.

  • File open/save dialog causes SPOD with 10.10.3

    Just updated to 10.10.3 from 10.10.2 using the combo updater (after hearing stories of people being hosed by the normal updater and having success once the combo was applied).
    Now, however, I find that whenever any application needs to open or save a file, and the directory selected in the dialog has a LOT of files (like 10K files), I get a SPOD (spinning pinwheel of death) for minutes.  MINUTES.  This never happened on any previous iteration of any MacOS.  This is on a MBP late-2013 with 16GB of RAM and a SSD.  
    Already repaired permissions.  Checked the filesystem with Disk Utility.  It's OK.
    This is really debilitating.
    I have a saved process sample output from Safari while it was in SPOD mode with the file dialog open.  I can upload this if would be interesting to anyone.  NOTE: just attempting to save this sample trace from within Activity Monitor caused that application to SPOD while it was asking me where to save the sample output.

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Keyboard shortcut for the Document Folder in file open/save dialog

    Does anyone know if there exists a keyboard shortcut for Document Folder in the File Save/Open Dialog? <command><shift>O works in the Finder. I tried variations of that in the dialog and didn't find any. <command>D takes you to the desktop. I tried other variations surrounding that to get to the Document Folder and didn't find any.
    Anyone? Bueller?

    There isn't.
    (56302)

  • Slow File Open & Save

    I have CS6 installed on a Mac Pro desktop, 3.3 Ghz machine, 6 Gb RAM, running OS X Mountain Lion.  Everything is running fine, updated and it's a great machine.
    But I've noticed that opening Photoshop files that are somewhat large and layered take WAY too long to open or "save."  I mean...3 minutes is much too long to wait.
    What's up with that?
    I have a spare physical drive configured (in preferences) for extra RAM, with plenty of empty drive space.  The startup drive has well over 250 Gb of space remaining.
    Seems like the machine is choking, like it's out of RAM.  But why?
    The only applications running are Photoshop and Bridge.  There is 6 Gb of RAM to run these applications and open files.  OpenGL is checked in Preferences and I'm running an nVidia graphics card, as well.
    Anyone? 

    Thanks, Noel.
    Yes, I could add more RAM, and I'll probably do that today.
    I restarted the machine and my performance is normal again.  Why didn't I restart sooner? I had JUST started the machine, launched PS and tried opening a file or two. The performance was terrible, and it's not like the machine had been running all day with heavy use.  It was basically a "fresh start."
    I still don't understand what caused this performance lag, since the machine had JUST been started.
    The files in question were native Canon 5D dimensions, uncropped, several layers, PSD format, 140 Mb.  It was taking several minutes to both OPEN and SAVE this file again - highly unusual for this or any previous machine I've owned.
    Thanks again.

  • File - Open - Save - Undo etc toolbar

    I have recently upgraded from PS Elements to CS3. Where is my File - Save - Open - Undo toolbar?
    (I searched for this so if it's been asked and anwsered just show me where)
    Thanks
    Phil

    Phillip mentioned "CS3" so I think that he has now bought the real Photoshop.?
    In Photoshop, those functions are not on a "tool bar" but in the Edit menu.
    However, I doubt if many Photoshop users use the Menu to do those tasks they just do them using Keyboard Shortcuts which are listed in the Edit menu..

Maybe you are looking for