CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: JBuilder Help!!

  1. #1
    Join Date
    Dec 2002
    Posts
    31

    Unhappy JBuilder Help!!

    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

  2. #2
    Join Date
    Nov 2002
    Location
    France
    Posts
    70
    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

  3. #3
    Join Date
    Dec 2002
    Posts
    31

    JProgressBar help!!!

    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

  4. #4
    Join Date
    Dec 2002
    Posts
    31
    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

  5. #5
    Join Date
    Nov 2002
    Location
    France
    Posts
    70
    Regarding images here is the code i've used it is working fine
    Code:
        jLabel1.setIcon(new ImageIcon(new java.net.URL("file:// imagePath")));
    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured