Click to See Complete Forum and Search --> : JBuilder Help!!


magicstar
January 3rd, 2003, 12:45 AM
Hi everyone

I am actually learning JBuilder6 for my project.I am just a beginner and i know only the very basic.I wanted to import an image of my choice in my applet(box.gif) as well as the backgroung(background.gif).Can someone plz help me.Thank u.

magicstar

sam_ccld
January 4th, 2003, 12:55 PM
All you need is to import the image files into your project
right click on package add files and add your images, put the images in the same path as your classes

magicstar
January 4th, 2003, 03:10 PM
Thank u,i'll try that out.In fact, i'm developing a file transfer interface and i'm kind of getting another problem.I need to have an "add file" button which when i'll click i'll get the window where i'll be able to browse and select the file.I've been able to do that part using the JFileChooser.I wanted to add the option whereby i could actually see the transmission of the file.I know there is the JProgressBar option but i don't know anything more-could u plz help me.What line of code should i actually write to activate that JProgressBar option??
Thanks

magicstar

magicstar
January 6th, 2003, 11:18 PM
Hi

I've still not been able to import the images.i've tried what u told me but it's still not working.I can see the images in the project pane but not into my application.If possible can u plz give me a little bit of more explanation.Thanks

magicstar

sam_ccld
January 7th, 2003, 02:27 AM
Regarding images here is the code i've used it is working fine


jLabel1.setIcon(new ImageIcon(new java.net.URL("file:// imagePath")));

Hope this helps