Search:

Type: Posts; User: Time4Java

Page 1 of 3 1 2 3

Search: Search took 0.30 seconds.

  1. Re: Recompiling errors even on unchanged .java files

    and what does it say, how does it stop you from compiling?
    What is the exact error message that the compiler is giving you?
  2. Re: New to Java - Question on complecity of a program.

    If you are new to java or programming I wouldn't go ahead and make a program that will be in charge of deciding wether or not to spend YOUR money online.

    The chances that you make an error are...
  3. Re: Recompiling errors even on unchanged .java files

    Cornix, I've come across plenty of silly little programs made for learning from that come in a jar file, like a tetris clone, or snake,
    Examples during tutorials, and such.

    So that's a use for...
  4. Replies
    6
    Views
    181

    Re: questions on error messages

    I think this might help you if you are having trouble with your syntax,
    Common java mistakes,
    If you are still having trouble with basic syntax, perhaps you should follow the tutorials listed on...
  5. Replies
    6
    Views
    181

    Re: OOP Java Programming

    How to ask questions the smart way.
  6. Replies
    3
    Views
    160

    Re: Trouble with 2D Arrays

    What output did you expect, and what output did you get? :)
    Also, what are you doing in this part of your loop?
    r <= puzzle[0].length-word.length();
  7. Re: Picture Puzzle Slide - Help please (beginner)

    Just reading through here I get the feeling you are rushing this.

    Studying the code without knowing what is done and how will not help you as soon as you need to change anything.
    So if you are...
  8. Replies
    2
    Views
    158

    Re: How to write a mini Sudoku?

    Any specific problem?
  9. Re: I missed string arg[]..but compiler did'nt throw an error and worked as i thought..is it mandatory to use string arg[] for all java apps?

    You can create a method called public static void main, and use it like you would use public static void main(String[] args),
    since they both are static, which is why you can use them without...
  10. Replies
    5
    Views
    157

    Re: HELP! cannot convert int to boolean

    I know the feeling, i went through half of my first programming module(120 lesson hours) without getting it, and it can seem like your teacher isn't teaching you at all ;p
    You just gotta get into it...
  11. Replies
    5
    Views
    157

    Re: HELP! cannot convert int to boolean

    - Hey there, I'm not quite sure why you are making 2 Scanner objects, you can just use the one for both Strings/ints/characters etc,
    having to type user_input for your Scanner might not be the...
  12. Replies
    5
    Views
    144

    Re: Painting a custom shape

    I'l take care of that thanks, yes, square wasn't initialized, Found my answer ;)

    --- Update ---

    Is there a better way of making a custom shape(like the 4custom squares on top of each other,...
  13. Replies
    5
    Views
    144

    Re: Painting a custom shape

    That's the thing, everything has been initialized properly, so the nullpointer exception doesn't make sense to me
    LineShape shape = new LineShape(this);
    This is what gives the...
  14. Replies
    5
    Views
    144

    Painting a custom shape

    Hi, I am currently trying to make a Tetris game, so far I've got a class drawing that extends a JPanel as my canvas, a class Square that is 1 square(20 by 20) and a class LineShape that should draw 4...
  15. Replies
    13
    Views
    241

    Re: Help new guy with code please

    Please post your code here in between code tags, the # symbol.
  16. Replies
    15
    Views
    190

    Re: Cant figure out how to moudulus!!!??

    You're welcome! You learn by doing ;)
  17. Replies
    15
    Views
    190

    Re: Cant figure out how to moudulus!!!??

    you can use () to avoid using fresult for what it is not meant for, fresult is only supposed to store the result of everything together, if you get that out of the way I think you'll be alot closer...
  18. Replies
    15
    Views
    190

    Re: Cant figure out how to moudulus!!!??

    the % modulus sign is used to get the remainder of a division, so if you divide 9 / 3 you get 0, if you divide 10/3 you get 3, but this isn't right, so if you do the division, and after that you do...
  19. Replies
    3
    Views
    129

    [SOLVED] Re: Boolean return missing

    Yeah, i've learned that now ;)

    By local I mean inside the method: boolean bool = false; then change the returns in the if statements with bool = true and at the end return bool;
  20. Replies
    3
    Views
    129

    [SOLVED] Boolean return missing

    So I'm trying to check if the new coordinates vs original coordinates are diagonal and 1 line further, and if there is a piece there(getNum()) if it's 2 lines further, so I'm trying to return a...
  21. [SOLVED] Re: How to fill available space with FlowLayout

    Thank you
    I'll close this now ;)
  22. [SOLVED] Re: How to fill available space with FlowLayout

    Thank you all for the response, I'm using miglayout and it all seems to work ;)
    But I do have one more question, when using swing, why should I repaint(or overwrite paintComponent)?
    So far I'm just...
  23. [SOLVED] Re: How to fill available space with FlowLayout

    I can try that, I just figured there must be a way of doing this with flowlayout too ;)
  24. [SOLVED] How to fill available space with FlowLayout

    I am trying to make a gui, with a frame, 2 panels which are half of the height of the frame, and in the bottom panel 7 buttons next to each other using FlowLayout.
    this works, but it does not fill...
  25. Re: Completely new to Java, don't understand my first Assignment

    Harsh, to be honest when I read his posts it seems as though the professor just gave to little info.
    That does not mean that he doesn't have what it takes to learn to program like Kevin suggests :0
Results 1 to 25 of 53
Page 1 of 3 1 2 3