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...
Type: Posts; User: Gigggas
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...
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...
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].
...
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) {...
Here is another example, similar to aussiemcgr's example:
public void paint(Graphics g) {
.........
drawMaze((Graphics2D) g);
.........
}
private void drawMaze(Graphics2D...
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...
I think the following lines in your declareAndReadMaps() method in your Maps class may be incorrect:
public void declareAndReadMaps()
{
.....
Kyle kl=new Kyle();
...
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...
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"...
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...
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...
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...
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?
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)?
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()...
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...
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?