Search:

Type: Posts; User: devindadude

Search: Search took 0.35 seconds.

  1. Replies
    1
    Views
    281

    JTextField with JButtons

    How do you append to a JTextField with a JButton without the previous text being deleted

    for example if i had
    JButton num0 = new JButton("0")
    JButton num1 = new JButton("1")
    JTextField text =...
  2. Replies
    4
    Views
    569

    Re: Mastermind game

    the numbers were for creating my own arraylist that contained a bank of number strings for the computer to randomly generate one as the secret number to have the user guess from
  3. Replies
    4
    Views
    569

    Re: Mastermind game

    That is true thank you very much i didnt think about that
  4. Replies
    4
    Views
    569

    Mastermind game

    I am confused on how to write a Boolean that will end the game if the guess is correct if anyone can help I would greatly appreciate it
    My teacher calls it baseball lol so I made a baseball class...
  5. Replies
    10
    Views
    337

    Re: Hangman Help

    i think i see what you are getting at because have the recall of my hidden word in the while loop so it goes everytime
  6. Replies
    10
    Views
    337

    Re: Hangman Help

    i wrote the code and the method for the String buffer is this


    <public StringBuffer choseWord(String s){ // method that makes the string dashes

    hideWord = new StringBuffer(s.length());...
  7. Replies
    10
    Views
    337

    Re: Hangman Help

    The nested statements are indented it is just the way the code was copied into thread.



    Im guessing it does this in the loop some how when i do the guesses one by one, im just not understanding...
  8. Replies
    10
    Views
    337

    Re: Hangman Help

    I dont know if you have tried to compile it or not but it happens when i compile the code. After i enter in my first guess it adds more dashes to word even though it stays the same, thus not allowing...
  9. Replies
    10
    Views
    337

    Re: Hangman Help

    It is like hangman just a word guessing game with unlimited tries until you get the word right. The word is chosen from my arraylist of words and disguised by dashes.

    When i run the program...
  10. Replies
    10
    Views
    337

    Hangman Help

    My code is not updating write after i enter a guess can someone help me out i cant think of what would be wrong

    This is my hangman class

    import java.util.*;
    import java.io.*;


    public...
Results 1 to 10 of 10