Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2010
    Posts
    8
    Rep Power
    0

    Default how to make Broswe button in jfram form to attache file

    Plesae i need to make jfram form containe two button
    the first button used to attache file
    and the second used to attache directoy



  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    10

    Default

    And what is your question? What have you done so far? What errors do you get?
    We won't do your work.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    8

    Default

    ibrahimyoussof,

    I'm sorry but I would agree with PhHein, we couldn't do the main work for you. We could only guide in your development.

    Anyways, a solution to your problem is using the JFileChooser found in the package javax.swing.*;

    A better understading of JFC(JFileChooser) is found in the JavaDocs 6.

  4. #4
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    8

    Default

    Quote Originally Posted by ibrahimyoussof View Post
    Plesae i need to make jfram form containe two button

    in swing buttons are created with

    JButton browsefile = new JButton("Browse to attach file");

    and for choosing a file use How to Use File Choosers (The Java Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

    to select a directory modify the code for browsing for a file. but what do you want thats happens when you click this button?

Similar Threads

  1. Make the Button Work
    By ŖΫ ỏ Ңόρę in forum New To Java
    Replies: 1
    Last Post: 02-27-2010, 11:52 AM
  2. How to make a contact form
    By suvojit168 in forum Java Servlet
    Replies: 5
    Last Post: 11-13-2009, 03:49 PM
  3. Reset form button and duplicated data
    By dbashby in forum New To Java
    Replies: 7
    Last Post: 10-10-2009, 04:40 AM
  4. can i make a login form?
    By mitsakos in forum New To Java
    Replies: 2
    Last Post: 12-19-2007, 11:14 PM
  5. Adding EXIT button on MIDlet form
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-22-2007, 11:13 AM

Posting Permissions

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