Search:

Type: Posts; User: GoodbyeWorld

Page 1 of 17 1 2 3 4

Search: Search took 0.25 seconds.

  1. Re: HELP!!! Int is not a reference type!

    r1x = 210;

    r1x.setVisible(false);

    ints can't call methods.
  2. Re: JavaScript insertion code not working properly.

    Ok, I cannot find the "Mark Thread as Solved" button. Had to do it manually. (And it only did it for the first post here in this thread.)
  3. Re: HELP!!! Int is not a reference type!

    By any chance are you trying to do a generic with int like this

    ArrayList<int>?

    If so, then it would be ArrayList<Integer>.
  4. [SOLVED]JavaScript insertion code not working properly.

    It's supposed to be inserting the stuff at the cursor point in the text area rather than at the end. I admit, I'm not that well versed in JavaScript, but I cannot see what is wrong with the code. I...
  5. Re: Need Help with getting user input from a TextArea and storing it as a String Value

    Do a println to see if it's losing your values.

    What do you mean "printing out"? JLabels don't have a print function.

    This is doing the same thing many times.



    for (int i=0; i<...
  6. [SOLVED] Re: terminate scanner at specific integer

    I believe that scan.nextInt() actually would read in a value, which would be lost the way you had that second while loop, so that's not what you wanted anyway.
  7. Replies
    5
    Views
    144

    Re: arraaaaaays

    I'm not sure quite what you are doing. You are making it be -113 twice.

    Here's part of what you could do. It saves some lines. Right now, you are printing each slot for every iteration of...
  8. Replies
    7
    Views
    237

    Re: Hey i really need help! Tic Tac Toe!

    I noticed that your buttons appear to have the same code in your ActionListeners. Granted, it appears that you are adding them in slightly different places with your layout, but the ActionListeners...
  9. Replies
    5
    Views
    88

    Re: where is the error

    Discussion group to resolve the error? Do you mean you have this posted on other forums/places and not just here? If so, please post a link to there.

    Not sure what your Arithmetic class does,...
  10. Replies
    5
    Views
    122

    Re: Rookie code errors please help

    double i, j, k
    double i = 50.0;
    double k = i + 50.0;
    double j = k + 1;

    I'm not sure why you are declaring i, j, and k twice.

    Also, you forgot the ; after "double i, j, k".
  11. Re: JAVA SWING CALCULATOR HELP, Set an Image as a background?

    Not sure. You could subclass JPanel and override paintComponent() and paint it as the background image if that's what you're thinking of.,

    What you are doing now just adds a JLabel with an...
  12. Replies
    6
    Views
    98

    Re: Tic Tac Toe GUI

    I didn't have the icon file so it wasn't showing it. However, it took till the second time of clicking a button before it went to image like you had in your first picture.
  13. Replies
    6
    Views
    98

    Re: Tic Tac Toe GUI

    For one thing, you never got rid of the button text, so it has both the icon and the text when you call setIcon().
  14. Replies
    6
    Views
    98

    Re: Tic Tac Toe GUI

    What do you mean it jumbles up all the other buttons?

    In setAllButtons(), it appears that you are setting the locations of the buttons themselves. I wouldn't call this every time one of your...
  15. Replies
    4
    Views
    132

    Re: Getting Error, help me, please :(

    Take away the = in k <= a.length;


    Then it will go from indexes 0 to 3. The way you have it right now, it is going from indexes 0 to 4, but there is no 4, hence the exception.
  16. Re: Simple File Transfer (Client-Server) implemented with Sockets

    Looks like it can't find a method in there. Perhaps you made a typo in there somewhere and misspelled the method name or something.
  17. Replies
    4
    Views
    132

    Re: Getting Error, help me, please :(

    for(int k=0; k<=a.length; k++ )

    indexes go from 0 to .length -1. Your = will make it go to index 4, which is out of bounds.
  18. Re: "expecting identifier at or before "void" problem in connect 4

    Not quite sure why that last one would be needed. While it is true that those methods don't need to be static, I don't see hwy you'd only need to move that stuff out of the main method.

    I do...
  19. Re: SWING Calculator. Don't know what to do now. Java Help!

    Any reason why you are adding the JButtons and other things to both your JFrame object created in gui() and your JFrame subclass?


    Also, you can do an Action Listener like this



    public...
  20. Re: Benchmarking Arrays vs Linked Linked vs Custom Linked List

    LinkedLists are linked and you cannot access them in the middle quickly like you can with arrays. Rather, depending on whether your list is singly linked or doubly linked, you have to hop from the...
  21. Replies
    2
    Views
    122

    Re: Exception in thread "main" Help

    Maybe this might be the problem

    for (int j=0;j<20;i++)
  22. Re: Calculator, SWING Java, HELP :( New to this!

    You already added the ActionListener to the buttons. As for your text field, I would add it with the other stuff and not create and add it in the ActionListener.

    As for getting the numbers, I'd...
  23. Replies
    6
    Views
    203

    Re: questions on error messages

    Here is the code so everyone can see it. You had a lot of compiler errors. As they were simple (forgetting variable names, perhaps meaning to define variables but forgetting, and things like that,...
  24. Replies
    5
    Views
    144

    Re: Writing a sequential Data file

    I'm not as sure how to do with this BufferedWriter as I am PrintWriter, as PrintWriter had a write(String) (BufferedWriter only has write(String, int, int) like PrintWriter has.)

    You should be...
  25. Replies
    4
    Views
    145

    [SOLVED] Re: Mutually Exclusive Radio Buttons

    Um, just a theory, but perhaps you could have the add statements done in the constructor. The only thing I can think of that would make it not work is that you cannot call a method like that outside...
Results 1 to 25 of 404
Page 1 of 17 1 2 3 4