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

Thread: adding questions label

  1. #1
    Member
    Join Date
    Jan 2014
    Posts
    209
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default adding questions label

    can anyone help
    I
    Last edited by stresstedout; April 9th, 2014 at 10:15 PM.


  2. #2
    Member
    Join Date
    Jan 2014
    Posts
    209
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: adding questions label

    can anyone help me pls

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: adding questions label

    Is this the same as your many earlier threads and posts about dragging and dropping one thing onto another, determining if it's correct, etc.? Either way, please describe the concept of this game, because I don't understand from your first post what you're trying to do and what specifically you need help with.

  4. #4
    Member
    Join Date
    Jan 2014
    Posts
    209
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: adding questions label

    GregBrannon, i know i may have took time understanding the drag and drop game etc but i dont think i should be judged on it. if you read the post 1 you would have noticed it has nothing to do with drag and drop you just assumed it would. i guess i dont have a good repuatation. this forum is here to help and guide users and all i was doing was asking for guidence and help and yes it took me to understand it but thats the whole point i was trying to understand, i apologise if i have wasted you and others time.

    I'm trying to make a click game. In the game, player must click at random placed numbers from 1 to 36(table 6x6) according to what is asked in the questionlabel...
    If player gets the answer wrong the game will restart, if it's the correct button is pressed the number will become dissapear. On 1st click = the question will be what is 0 + 1, so the user must click 1, on 2nd click the the question will 1+1 so the user clicks 3 and soo on untill we get to 36..

    i know how to add a label looking at my code on post #1 i want the question label to say what is 0 + 1, when the user clicks the question label changes 1 + 1, and then the question label changes to what is 2 + 1 and once 3 is pressed it carries on all the way to 36.

    how can i achieve this.. please refer to code on post#1.

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: adding questions label

    No groveling necessary, and I don't know that your reputation has suffered. I'm just trying to understand what you're trying to do, and it's difficult to visualize that from your first post. Your answer is a bit more helpful. Let me see if I have it right:

    There is an answer field and a question area.

    The answer field contains 36 possible answers in a 6x6 grid.

    The question field is . . . where? . . . what? . . . fed by what questions?

    If the user clicks the right button (label, whatever) in the answer field, that answer goes blank (describe what disappears means)

    If the user clicks the wrong button in the answer field, the game starts over . . . (?) That's weird. Why doesn't the user just get the answer wrong and go to the next question?

    i know how to add a label looking at my code on post #1 i want the question label to say what is 0 + 1, when the user clicks the question label changes 1 + 1, and then the question label changes to what is 2 + 1 and once 3 is pressed it carries on all the way to 36.
    I don't understand this stream of consciousness sentence. Can you break it down into smaller, understandable bits?

  6. #6
    Member
    Join Date
    Jan 2014
    Posts
    209
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: adding questions label

    i am not GROVELLING!!! IF YOU WANT HELP ME HELP ME OR DONT..
    Last edited by stresstedout; April 9th, 2014 at 10:15 PM.

  7. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: adding questions label

    Didn't mean to offend.

    I recommend a JFrame with a component added to the BorderLayout.NORTH position to be the question field and another component in the BorderLayout.CENTER position using a GridLayout manager.

    Good luck!

  8. #8
    Member
    Join Date
    Jan 2014
    Posts
    209
    My Mood
    Depressed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: adding questions label

    u are a total waste of time atleast norm helps

  9. #9
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: adding questions label

    The OP requested a fresh start and opened another thread.

    Thread closed.

Similar Threads

  1. List of my Java3D Questions, and Proguard questions
    By Zachary1234 in forum Java SE APIs
    Replies: 0
    Last Post: November 16th, 2012, 09:40 PM
  2. [SOLVED] Need help with updating label
    By Neacel in forum AWT / Java Swing
    Replies: 5
    Last Post: January 22nd, 2012, 02:38 PM
  3. Label not showing up.
    By joshft91 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 1st, 2011, 03:36 PM
  4. Interaction between two label in animation
    By odiejodie in forum Java Theory & Questions
    Replies: 1
    Last Post: February 16th, 2011, 08:51 AM