chdboy's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
135 (0.16 per day)
Joined:
26-July 12
Profile Views:
798
Last Active:
User is offline Nov 15 2014 07:56 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   chdboy has not set their status

Posts I've Made

  1. In Topic: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgume

    Posted 13 Jul 2014

    View Postg00se, on 12 July 2014 - 03:36 PM, said:

    Quote

    But the resource is there with image in the folder(Images).
    But there's no such folder in the path you're using ...

    Please post the result of the following command, having opened cmd.exe and changed to your workspace directory

    dir /s/b YourProjectFolder
    


    Let me know if you're not using Windows

    See also http://technojeeves....va-with-eclipse

    It worked as per your link I did the import and it worked.
    I was doing import the wrong way..manually copy and past the image into the folder(Wrong way).
    Thank you very much.
  2. In Topic: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgume

    Posted 12 Jul 2014

    Yes I'm using Eclipse
    1.Java Directory folder on my desktop.
    2.Folder in which class files are created.
    3.src folder.
    4.Inside src folder is the .jpg file.
  3. In Topic: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgume

    Posted 12 Jul 2014

    But the resource is there with image in the folder(Images).
  4. In Topic: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgume

    Posted 11 Jul 2014

    View Postg00se, on 11 July 2014 - 04:02 PM, said:

    Change it to the following and let us know what's printed

    java.net.URL u = getClass().getResource("/resources/Companylogo_FINAL.jpg");
    System.out.println(u);
    myPicture = ImageIO.read(u);
    
    

    This is what I got

    null
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null!
    	at javax.imageio.ImageIO.read(ImageIO.java:1388)
    
  5. In Topic: How to make a constructor visible?

    Posted 10 Jul 2014

    Thanks you all :).

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

chdboy hasn't added any friends yet.

Comments

chdboy has no profile comments yet. Why not say hello?