Search:

Type: Posts; User: ikocijan

Search: Search took 0.07 seconds.

  1. Thread: JComboBox

    by ikocijan
    Replies
    9
    Views
    1,593

    Re: JComboBox

    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
  2. Thread: JComboBox

    by ikocijan
    Replies
    9
    Views
    1,593

    Re: JComboBox

    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...
  3. Thread: JComboBox

    by ikocijan
    Replies
    9
    Views
    1,593

    Re: JComboBox

    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...
  4. Thread: JComboBox

    by ikocijan
    Replies
    9
    Views
    1,593

    Re: JComboBox

    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...
  5. Thread: JComboBox

    by ikocijan
    Replies
    9
    Views
    1,593

    JComboBox

    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...
  6. Thread: Java applet

    by ikocijan
    Replies
    11
    Views
    1,707

    [SOLVED] Re: Java applet

    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
  7. Thread: Java applet

    by ikocijan
    Replies
    11
    Views
    1,707

    [SOLVED] Re: Java applet

    Thank you for your replies. I will read the tutorial later today and try java console.
  8. Thread: Java applet

    by ikocijan
    Replies
    11
    Views
    1,707

    [SOLVED] Re: Java applet

    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...
  9. Thread: Java applet

    by ikocijan
    Replies
    11
    Views
    1,707

    [SOLVED] Re: Java applet

    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...
  10. Thread: Java applet

    by ikocijan
    Replies
    11
    Views
    1,707

    [SOLVED] Re: Java applet

    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
  11. Thread: Java applet

    by ikocijan
    Replies
    11
    Views
    1,707

    [SOLVED] Java applet

    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>
    ...
  12. Thread: Calculator

    by ikocijan
    Replies
    2
    Views
    1,195

    [SOLVED] Re: Calculator

    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:
  13. Thread: Calculator

    by ikocijan
    Replies
    2
    Views
    1,195

    [SOLVED] Calculator

    Hello,
    can someone help me with this code (it is a calculator with ActionListener):



    else if (src == referenca.buttonPlus)//when someone press button +
    {
    ...
  14. Replies
    5
    Views
    1,595

    [SOLVED] Re: Simple calculator issue

    I thought I did. Isn`t this what you are talking about


    Calculator referenca;

    CalculatorEngine (Calculator referenca)
    {
    this.referenca=referenca;
    }
  15. Replies
    5
    Views
    1,595

    [SOLVED] Re: Simple calculator issue

    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...
  16. Replies
    5
    Views
    1,595

    [SOLVED] Simple calculator issue

    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...
Results 1 to 16 of 16