The only bug I see is you accusing a programming language which has been around for decades, used by thousands, for your incompetence.
Just because you can't get it to work doesn't mean it has a bug, it means you don't know what you are doing.
It is OK not to know, it is not ok to say that "java" has a bug when no one else has complained just because you rushed into doing something without the proper experience
This simple example can be found anywhere:
JButton butt = new JButton();
JTextField field =new JTextField();
public void actionPerformed(ActionEvent e) {
Object source = e.getSource();
if (source==butt) {
} else if (source==field) {
}
}
That is how you know what was clicked
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
The only bug I see is you accusing a programming language which has been around for decades, used by thousands, for your incompetence.
Just because you can't get it to work doesn't mean it has a bug, it means you don't know what you are doing.
It is OK not to know, it is not ok to say that "java" has a bug when no one else has complained just because you rushed into doing something without the proper experience
This simple example can be found anywhere:
JButton butt = new JButton();
JTextField field =new JTextField();
public void actionPerformed(ActionEvent e) {
Object source = e.getSource();
if (source==butt) {
} else if (source==field) {
}
}
That is how you know what was clicked
Please don't insult me. The above WAS NOT THE BUG i was talking about that i couldn't get trhough. It's merely a work around because people were complaining that they can't play my game.
Why didn't you answer my previous post then if you think you're so smart.
javaAddict is not insulting you, just telling the truth. Your answer is not very polite.Also my Java applets won't run on machines with a Macintosh. So how do you fix that?
I AM A NEWBIE TO JAVA.
It is obvious that you are a newbie to Java, you do not have to shout it so loud.
The only one who is going to "fix" anything in your code is you. On this forum you can ask for help but you can not tell people to "fix" things for you.I should have the right to delete my own posts. I may not be an expert JAVA program but i should have the right to delete my own posts.
The right to delete a post has nothing to do whit your programming skills. You should send a message to one of the moderators and ask for help.
sneaker
Junior Poster in Training
77 posts since Jul 2009
Reputation Points: 40
Solved Threads: 13
Why didn't you answer my previous post then if you think you're so smart.
What previous post? Not to mention that no one here is obligated to solve every single thread as if we have some sort of deadline. I don't know what post you are referring to, but if I didn't answer it, that was my choice. I don't have to do it.
Also you never posted your code describing where is your problem and what you are trying to accomplish. We would have seen what you have written and provided solution. You just said that java has a bug and is preventing you from writing your code, because it is java's fault
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
Sorry I forgot this in my previous post... :)
... I'm sorry i don't know how to find anything on java sun docs.
I am frustrated. ...:@
I can really understand that frustration.
It took me a long time to understand the API and sometimes I still do not get it right. But it is really good that you use it and tries because once you have got a hang of it the API is very useful.
Java tutorials are a good complement to the API and you will find them here: http://java.sun.com/docs/books/tutorial/
sneaker
Junior Poster in Training
77 posts since Jul 2009
Reputation Points: 40
Solved Threads: 13