Search:

Type: Posts; User: Spidey1980

Page 1 of 4 1 2 3 4

Search: Search took 0.22 seconds.

  1. Thread: packages

    by Spidey1980
    Replies
    2
    Views
    467

    Re: packages

    I was thinking maybe combining the tools and objects classes into one tools.class and objects.class with delicately crafted constructors.
  2. Thread: packages

    by Spidey1980
    Replies
    2
    Views
    467

    packages

    Hi again.

    Ok so I have been developing a zelda clone. It works beautifully. I just want to clean up and organize my project folder. I started with everything in the same folder. To begin...
  3. Replies
    23
    Views
    1,147

    Re: Changing from a screen to another!

    I have a work in progress a game with the the same functionality you are looking for. What I am doing is just working with images. So I have fore example, a method



    public BufferedImage...
  4. Re: reading from text file produces extra s p a c e s, even on numbers 1 0 1

    never mind I rebuilt my loader and my parser works perfect now!

    unicode, specified it in the writer but not the reader...

    using IOOperations.java sub class from Java programming for the...
  5. reading from text file produces extra s p a c e s, even on numbers 1 0 1

    I have a test.txt file with the following in it:


    MapTile,1,256,false
    MapTile,9,291,false


    no matter what way I try to read this file in java, the result is:
  6. Replies
    10
    Views
    1,294

    [SOLVED] Re: JTable Popup

    is the new line escape not working? "first line \n new line"
  7. Replies
    3
    Views
    309

    Re: Failing to properly Close Windows

    nevermind I got it, (WindowEvent wE) should be (WindowEvent e). Why the the book had it as "wE" and not "e" i'll never know.
  8. Replies
    3
    Views
    309

    Failing to properly Close Windows

    On my journey through my java Book, I'm starting to learn about frames.

    When you click the "X" to close the window, this program does not completely terminate for some reason, you have to use...
  9. Replies
    7
    Views
    586

    Re: How do i fix my code?

    You forgot to extend the class you are using super for.
  10. Replies
    7
    Views
    428

    Re: Login Page error

    Your main is not a pacakge.
    Try importing the package instead.

    import directory/pck1.*;


    And that is not how you define a main. Should be:


    public static void main(String Args[]) extends...
  11. Re: New working theaded non-system-crippling Starscape

    Thats great! I love it. You took the vector math even further. WOW.

    So basically use the logarithm to find the distance x,y is from 0,0 and reject anything that is further than 99 pixels away...
  12. Replies
    7
    Views
    349

    Re: New to programming

    Fixed, lol, I was trying not to spoon feed too much. My book has errors in the examples, a headache, but it makes you figure it out on your own.



    Put together the example I showed you. Put the...
  13. Thread: hello

    by Spidey1980
    Replies
    2
    Views
    195

    Re: hello

    Welcome to the club. Are you learning Java in school or on your own?
  14. Replies
    7
    Views
    349

    Re: New to programming

    Seems to me that there are multiple solutions to this.

    The pen and paper version:

    1) 96 stools and 3 tables( (96*3)+(3*4) = 300)
    2) 92 stools and 6 tables( (92*3)+(6*4) = 300)
    3) 88 stools...
  15. Replies
    1
    Views
    291

    Re: Learning to program :)

    There's a lot more to it than just upping your code onto the mp3 player. Most companies do not allow changes to be made that easy to their products. Hacking something (like putting linux on a...
  16. Re: New working theaded non-system-crippling Starscape

    What I'm talking about there is that I do not want a star to start close to the edge to immediately move out of range. So that the Stars actually have a little more time on screen, I start them near...
  17. Re: New working theaded non-system-crippling Starscape

    LOL I don't think you can make a circle out of a 2x2 square of pixels. If you Talking about the fillRect in my code, that's the background. Easier than erasing each star, and visually there is no...
  18. Re: Challenge: I need an animation loop outside of the paint method.

    It did work, how ever my code has been polished and the random generators are now in the constructor. Infact new values are no longer created like that, myX, myY, ect only get values set to them...
  19. Replies
    3
    Views
    333

    Re: Already defined?

    If it works in the unmodified code being defined more than once.....I don't get it either.
  20. New working theaded non-system-crippling Starscape

    Thank you everyone for all your help. Here is the final polished version:

    StarScape.java

    // starscape.java
    // by Jon Crawford
    import Star.*;
    import java.awt.*;
    import java.awt.event.*;...
  21. Replies
    3
    Views
    241

    Re: Problem with threads

    I musta been tired last night. Thread(this) gave me a "variable this not found in StarScape.class" so I had removed it.

    however this morning I tried it and it works perfectly. I guess I just...
  22. Replies
    2
    Views
    2,461

    Re: Bubble Sort with random numbers

    You should be held back a year in school there...

    But so that does not happen....


    import java.util.Random;
    ...edited by moderator
  23. Replies
    3
    Views
    333

    Re: Already defined?

    look in EntityBullet.java and EntityBullet2.java and looks like entityPlayer owner should be public.
  24. Replies
    3
    Views
    241

    Problem with threads

    My StarScape is still not running on its own after adding threading. I still have to click or resize to see the next frame of animation.

    new StarScape:

    // starscape.java
    // by Jon Crawford...
  25. Re: Challenge: I need an animation loop outside of the paint method.

    they do get in there though. the random numbers get to the constructor because I did not declare them private. I was having a problem using the random in the constructor because my star.class was...
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4