SOLVED my problem. The whole time I gave the program Bike 5 path insted of Bike5.jpg. Didn`t realize that extensions must be added! Sorry for wasting your time and thanks for help! :D
Type: Posts; User: ikocijan
SOLVED my problem. The whole time I gave the program Bike 5 path insted of Bike5.jpg. Didn`t realize that extensions must be added! Sorry for wasting your time and thanks for help! :D
I know, I read that in Java tutorial NullPointerException - If the pathname argument is null. I would like to know if I need to put the pictures in a specific folder or add then to my project (tried...
When I print it on console path is Bike 5.
When I try your code it always throws java.lang.NullPointerException. I think that is becase it never creates new File. I changed IF statement so that it...
OK, thanks for your answer. Tried that but it still won`t load the picture. Can you please tell me in which folder should I put the pictures? package folder or something else?
edit: Could there be...
Hello,
I am trying to create a JComboBox that would change pictures. My problem is that my method always returns null and it doesn`t return my image which is located in my package. Now I would like...
I read all about creating and working with jar files and now everything works. Thank you guys for wasting your time on my problem :D
Thank you for your replies. I will read the tutorial later today and try java console.
Well that is going to be a problem because I can not copy anything from that window. In chrome when I launch web page only that window pop- up and if I press Details it opens Java consoe. If I press...
do you mean something like this:
<applet code = "com/PracticalJava/Lesson10/Calculator" width=300 height=250 />
I tried that and I got error: ClassNotFoundException
I made a simple program so...
Removing .class didn`t help.
when I launch .html file chrome should display my calculator (eclipse displays it as an applet). I attached screen shoot. hope that helps.1301
Hello,
I have a problem when I try to implement java applet to a web page. Web page keeps saying :
NoClassDefFoundError. Can anyone help me with this?
here is a html code:
<header>
...
THANK YOU,VERY MUCH!! :D that really helped.
(mathOperator.equals("-"))
this line is what was bothering me and now I know how to check if string is equal to something. :cool:
Hello,
can someone help me with this code (it is a calculator with ActionListener):
else if (src == referenca.buttonPlus)//when someone press button +
{
...
I thought I did. Isn`t this what you are talking about
Calculator referenca;
CalculatorEngine (Calculator referenca)
{
this.referenca=referenca;
}
Thanks for your answer, and I figured out where is the problem. It`s in this line
String displayText = referenca.getDisplay(); I think it means that I can not reach method(or function, do not know...
Hello,
I am a total begginer in JAVA and I could use your help. I am reading a book " Java Programming 24-Hour Trainer by Yakov Fain
" and I have a problem with creating a calculator.
here is my...