were do i tell it were to get the picture from ...? i have it saved in my pictures on my computer so how do i tell it to take it from there? do i just include it in name?
You can load .bmp images with the ImageIO class and hand the returned BufferedImage to your ImageIcon constructor. ImageIO support for .bmp and .wbmp images starts in j2se 1.5
edit for width [ June 13, 2006: Message edited by: Craig Wood ]
the explanation isn't really above my head i understand it i just don't know how to us said methods...... while i wait for a reply i will mess around and try to figure it out..... thanks [ June 12, 2006: Message edited by: chris barr ]
that doesn't work .. but it compiles and runs and doesn't give an error and i am not catching it or thowing anything.??? let me know if you want more code.
If you would rather stick with the ImageIcon class for loading, check the ImageIcon api for the "getImageLoadStatus" which will return information about loading success.