Filip Stirn wrote:Can you tell me which path sould I write? I tried everything that comes on my mind but still without sucess.
As I mentioed before the picture is here C:/raptor.jpeg and the .java is in C:/users/accountName/eclipse/picture/src/picture.java
Paul Clapham wrote:
Filip Stirn wrote:Can you tell me which path sould I write? I tried everything that comes on my mind but still without sucess.
As I mentioed before the picture is here C:/raptor.jpeg and the .java is in C:/users/accountName/eclipse/picture/src/picture.java
How is it that you didn't try "C:/raptor.jpeg" then?
Or perhaps your problem is not that the image isn't found, but something else. I did notice that you didn't describe your problem at all.
Filip Stirn wrote:It still don't work. Can someone just please try my code, fill in what is wrong or missing and then paste the working code here?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:Setting the size of your panel does nothing - the frame's content pane's BorderLayout ignores it. You should set the preferred size instead, as that's being used by most layout managers.
As for the border, you can always give your panel itself a border, using its setBorder method.
SCJP
Visit my download page
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |