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 5 of 5

Thread: JDialog not working properly

  1. #1
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: JDialog not working properly

    That's a heck of a lot of code to ask us to go through. I suggest:
    1) please surround your posted code with code tags:
    [code]

    // ... your code goes here

    [/code]

    This way your code will retain its formatting and be more readable.

    2) Please isolate for us the code of interest so that we don't have to go through a ton of unrelated code. Please remember that we're volunteers doing this on our free time.


  2. #2
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JDialog not working properly

    I have before been hesitant to post all this code online. I posted then what I judged to be the more relavant parts of it in other forums and was told I needed to post the entire source code in order to make the job of the volunteers easier. Now you tell me to do the opposite. So I am not sure how to proceed... I have left out some of it.

  3. #3
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: JDialog not working properly

    Quote Originally Posted by agarta View Post
    I have before been hesitant to post all this code online. I posted the more relavant parts of it in other forums and was told I needed to focus on the relevant snippets in order to make the job of the volunteers easier. Now you tell me to do the opposite. So I am not sure how to proceed...
    Your best bit is to:
    • First and foremost, always use the formatting tools of whatever forum you're posting your code on so that the code retains its formatting. Different forums use different tools, and so it is a good idea to check out the forum's FAQ to see how to do it. I in fact show you how in my first post, and I urge you again to edit your original post here and add code tags.
    • Your other point is well taken as there's an art to asking a question in a forum, and it can be hard to know what is too much or too little code to post. You want to post enough code so that your question can be answered but not too much code so as to overwhelm the volunteers that help on the site.
    • Your best bet in fact is to write a new small program that compiles, runs, that illustrates your problem and that has no code unrelated to compiling, running, and illustrating the problem, a Short, Self Contained, Correct Example, or SSCCE.
    • In addition, it is sometimes a good idea to repost a small portion of your displayed code, that which you believe has the greatest likelihood of causing your problem, and then describing this section of code in detail so that we can understand it well.

  4. #4
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JDialog not working properly

    OK, I am going to work further on it and repost if need be. Thank you kindly for taking the time to clarify things for me.
    Marcos

Similar Threads

  1. [SOLVED] System exit command is not working properly
    By LRWalton in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 21st, 2012, 06:27 PM
  2. Applet not working properly
    By kookevk in forum AWT / Java Swing
    Replies: 1
    Last Post: February 3rd, 2012, 01:29 AM
  3. Scanner not working properly.
    By kookevk in forum What's Wrong With My Code?
    Replies: 9
    Last Post: January 25th, 2012, 10:14 PM
  4. Complete but not working properly
    By Noob101 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 12th, 2011, 03:17 PM
  5. if else statement not working properly
    By tina G in forum Algorithms & Recursion
    Replies: 1
    Last Post: March 29th, 2010, 08:04 AM