Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By gimbal2

Thread: jfileChooser and jcomboBox problem

  1. #1
    AhmedNabil9 is offline Member
    Join Date
    Nov 2014
    Posts
    3
    Rep Power
    0

    Angry jfileChooser and jcomboBox problem

    now i have two problems
    1. that i can't make the [JfileChooser] save text file instead of opening files.
    2. that [ComboBox] always don't show me the items that i have inserted in eclipse.

    Last edited by Tolls; 11-13-2014 at 10:56 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: jfileChooser and jcomboBox problem

    Please post code showing the problems. Be sure to wrap the code in code tags.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    AhmedNabil9 is offline Member
    Join Date
    Nov 2014
    Posts
    3
    Rep Power
    0

    Default Re: jfileChooser and jcomboBox problem

    jfileChooser and jcomboBox problem-screenshot-2014-11-13-10-43-51.png
    here the problem i cant go to the source code when i click twice in the "jfileChooser" because i wanna give the "ok" button a different task , i wanna make this button Save files . how can i customize that Class that called "jfileChooser"

    thats happen when i click twice on the JfileChooser
    jfileChooser and jcomboBox problem-untitled2.jpg



    jfileChooser and jcomboBox problem-screenshot-2014-11-13-11-14-05.png
    the problem number two in eclipse application window when im trying to add items in the ComboBox it never appear in the ComboBox when i run the application
    Last edited by Tolls; 11-13-2014 at 10:56 AM.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: jfileChooser and jcomboBox problem

    Please don't use a large font.
    The normal one is quite good enough and has the added advantage of not looking like you are shouting.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: jfileChooser and jcomboBox problem

    Please make a small complete program that compiles, executes and shows the problem.
    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: jfileChooser and jcomboBox problem

    I think an SSCCE is going to be a little hard given how the question is asked - the problem here is basically the classic "I don't know how to do Swing programming, I'll use a drag & drop tool to do the work for me, but I don't know how to do Swing programming and thus I can't figure out how to make the tool work for me".

    AhmedNabil9: pretty please, stop using the graphical editor. Learn how to build a Swing GUI by hand, with only code. That might sound like it is a huge bother, hard and lots of work - it is none of all that. You need to understand how to program a thing like this completely by hand before you can use tooling to do the work for you. Or you end up in this situation - not knowing what to do when the tool inevitably fails to do your work for you.

    https://docs.oracle.com/javase/tutorial/uiswing/

    With code we can assist, with graphical forms in an IDE, not so much.
    SurfMan likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    AhmedNabil9 is offline Member
    Join Date
    Nov 2014
    Posts
    3
    Rep Power
    0

    Default Re: jfileChooser and jcomboBox problem

    Quote Originally Posted by Norm View Post
    Please make a small complete program that compiles, executes and shows the problem.
    here the output application window

    jfileChooser and jcomboBox problem-untitled5.jpg

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: jfileChooser and jcomboBox problem

    Sorry, I can't copy anything from an image for testing. The code that compiles and executes needs to be posted here.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Extension problem using JFileChooser
    By JavaFan in forum New To Java
    Replies: 1
    Last Post: 12-22-2011, 04:44 AM
  2. JFileChooser Problem
    By gkoef in forum New To Java
    Replies: 5
    Last Post: 04-29-2011, 02:08 PM
  3. Problem with saving from JFileChooser
    By fireshadow4126 in forum AWT / Swing
    Replies: 2
    Last Post: 11-24-2010, 08:21 PM
  4. JFileChooser problem
    By jperson in forum New To Java
    Replies: 2
    Last Post: 02-06-2010, 07:31 PM
  5. jfilechooser and jtextarea problem
    By kostinio in forum AWT / Swing
    Replies: 7
    Last Post: 10-07-2009, 08:46 AM

Tags for this Thread

Posting Permissions

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