Search:

Type: Posts; User: Gigggas

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,342

    Re: Title screen Glitch (Cant Bust ERROR)

    Are you trying to add a JButton? IIRC, those have to be placed on a JFrame, JPanel, or some other such component.

    Or are you instead trying to have a custom image appear that represents a...
  2. Replies
    6
    Views
    1,363

    Re: Issues with sorting algorithm

    Your HairSalon class has declared all its variables as static objects. This would mean each HairSalon object in the array is referencing the same service, price, and minute variables. Remove the...
  3. Replies
    1
    Views
    1,510

    Re: New Programmer working with generics!

    I'm not particularly familiar with generics, but it looks like all you need to do is change your array variable from an Object[] to an E[]. Then initialize the array as a new E[Default_Capacity].
    ...
  4. Replies
    2
    Views
    1,351

    Re: Integer set in void, is being called upon.

    It looks like you've been mixing up the "==" operator with the "=" operator in several of your if loops. Here are all the instances I see:

    public void FinishCast() {
    if (c.casting = false) {...
  5. Replies
    22
    Views
    2,366

    [SOLVED] Re: Help Generating a level

    Here is another example, similar to aussiemcgr's example:

    public void paint(Graphics g) {
    .........
    drawMaze((Graphics2D) g);
    .........
    }
    private void drawMaze(Graphics2D...
  6. Replies
    2
    Views
    1,376

    Re: Help with logical operators

    Switch your Isosceles and Equilateral if loops. With the code as it is right now, If the triangle is an Equilateral, the first if loop will find at least 2 sides equal and return true, and you will...
  7. Replies
    2
    Views
    1,320

    Re: My first rpg with a custom data type

    I think the following lines in your declareAndReadMaps() method in your Maps class may be incorrect:

    public void declareAndReadMaps()
    {
    .....
    Kyle kl=new Kyle();
    ...
  8. Replies
    3
    Views
    1,206

    Re: Code just stops when string is initialised

    Glad to see you got it fixed. I don't know much about packets, so I don't know why the getData() method would have any problem being called twice on the same object. It could be related to...
  9. Replies
    7
    Views
    1,607

    Re: Please help! Need help with class project!

    I spotted this slight problem with the initializing of "i" and two of your array variables:

    int i = 1;
    int [] appetizerChoice = new int [i];

    int [] entreeChoice = new int [i];

    Int "i"...
  10. Replies
    7
    Views
    2,011

    Re: Java program (beginner) help?!

    What are the results of using that decompress method? Does it throw an exception or does it give an incorrect String?

    It appears that when the decompress method receives a 2-character input...
  11. Replies
    3
    Views
    1,206

    Re: Code just stops when string is initialised

    Are you using Eclipse or any compiler/debugger with Break Points? If so, make sure there is no Break Point on that the line with the String "message".

    If that is not the problem, perhaps it is...
  12. Replies
    2
    Views
    1,409

    Re: Ludum Dare 23: April 20-23

    I have checked out the games made in the past Ludum Dares, and many of the games are quite good for games made in 2-3 days. However, I doubt I will be entering the next Ludum Dare, simply because of...
  13. Replies
    2
    Views
    1,537

    Re: Regular expression handling

    As mobydickus said, it is difficult to decipher what that code you posted actually does. Would you be able to provide a SSCEE or at least the entire java code for that regex class?
  14. Re: How to load specific .midi (music) files from the cache?

    Is your "client" class a custom class you created? Or is it from the Java Client library or another existing library?
    Would you be able to provide the java code for just your Music System class(es)?
  15. Replies
    5
    Views
    1,947

    [SOLVED] Re: (LWJGL)openGL arraylist rendering problem

    Alright, after examining the rendering code for this Example Java Space Invaders game, I think you need to add the following methods to your Box.Draw() method:

    //Add this to beginning of draw()...
  16. Replies
    5
    Views
    1,947

    [SOLVED] Re: (LWJGL)openGL arraylist rendering problem

    Based on this LWJGL tutorial, it appears you are missing this line:

    // Clear the screen and depth buffer
    GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
    ....

    This code...
  17. Re: How to load specific .midi (music) files from the cache?

    What kind of object is the "c" variable?
    Why do you need the Music System to load the .midi files from the cache?
    Can you provide a SSCEE, if possible?
Results 1 to 17 of 17