Results 1 to 8 of 8

Thread: jFileChooser

  1. #1
    ArneBassez is offline Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0

    Default jFileChooser

    Hey,

    I have made a jFileChooser using a jFrame form.
    How do I:

    1. Return the FileName or Path of the file (either will do)
    2. Write the "opened" file to my database

    I hope some genius can help me out here..

    Thanks in advance

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,932
    Rep Power
    8

  3. #3
    ArneBassez is offline Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,932
    Rep Power
    8

    Default

    Sorry, does that mean your problem is solved? I'm not sure what's in that tutorial that isn't in the one I posted.

  5. #5
    ArneBassez is offline Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0

    Default

    Well the problem is solved, but I had to write it myself instead of using the premade JFileChooser( from the GUI palette).

  6. #6
    ArneBassez is offline Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0

    Default

    Thx for the respons btw :)

  7. #7
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,932
    Rep Power
    8

    Default

    Oh, you mean you had to write code instead of using a GUI builder? That's probably a good idea anyway. Ditch the GUI builder if you want to learn how to program.

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default

    Ditch the GUI builder if you want to learn how to program.
    I second the recommendation, with one change:
    Ditch the GUI builder until you learn how to program. It may appear to be a boon to beginners, but it's actually an advanced tool -- as you've just discovered.

    db

Similar Threads

  1. JFileChooser
    By javabarn in forum New To Java
    Replies: 2
    Last Post: 07-12-2010, 06:08 PM
  2. jfilechooser
    By ranadav in forum AWT / Swing
    Replies: 7
    Last Post: 06-03-2010, 02:44 PM
  3. help with JFileChooser
    By morgatron in forum New To Java
    Replies: 1
    Last Post: 01-08-2010, 09:00 AM
  4. JfileChooser Help
    By simmi in forum AWT / Swing
    Replies: 9
    Last Post: 08-04-2009, 02:24 AM
  5. how to use JFileChooser
    By tommy in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •