Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: how to write a code to read the directory of windows as the time we Save As the paint program , capability to search the direction where we wanna save our file , tnx for your help

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    7
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default how to write a code to read the directory of windows as the time we Save As the paint program , capability to search the direction where we wanna save our file , tnx for your help

    hi to all java lovers
    I appreciate your help
    As I mentioned at the title , I wanna write a program to searching the directory of windows to
    Saving As files,etc ...
    as we do in programs like window's paint program
    Thanks for your help
    <3


  2. #2
    Member
    Join Date
    Jul 2013
    Posts
    219
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default Re: how to write a code to read the directory of windows as the time we Save As the paint program , capability to search the direction where we wanna save our file , tnx for your help

    Hello.
    If it is a gui program then you can use JFileChooser.
    Create an object of JFileChooser. Then invoke showSaveDialog() on this object. Check the api doc for the method signature.
    Let me know if that helped.

    Thanks,
    Syed.

  3. The Following User Says Thank You to syedbhai For This Useful Post:

    CrazyCoder (July 26th, 2013)

Similar Threads

  1. Writing code to save in a file... help please
    By rchrist3 in forum File I/O & Other I/O Streams
    Replies: 11
    Last Post: March 13th, 2013, 12:51 PM
  2. Frustrating File>save as search function in google script
    By segreto in forum Other Programming Languages
    Replies: 2
    Last Post: August 16th, 2012, 01:40 PM
  3. How to save Image into a package by JButton save?
    By justyStepi in forum AWT / Java Swing
    Replies: 1
    Last Post: May 12th, 2012, 08:02 PM
  4. Java I/O File code; how to read/write file
    By ryu2le in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: September 18th, 2011, 06:51 PM
  5. Read modify save xml elements in java
    By karthikin in forum Member Introductions
    Replies: 2
    Last Post: June 27th, 2011, 09:05 AM