Results 1 to 5 of 5
  1. #1
    sniffer139 is offline Member
    Join Date
    Feb 2010
    Posts
    19
    Rep Power
    0

    Lightbulb how can i attach a worg/image file

    is der any code or something so tha t a can attach a document or an image .pls help i am new to swings i am not getting anything here
    SNIFFER

  2. #2
    nonabhai is offline Member
    Join Date
    Mar 2010
    Posts
    20
    Rep Power
    0

    Default

    You may use Jlabel ro display Images. below is sample code:

    ImageIcon icon=new ImageIcon("Path of image");
    jLabel1.setIcon(icon);


    Hope it works.

  3. #3
    sniffer139 is offline Member
    Join Date
    Feb 2010
    Posts
    19
    Rep Power
    0

    Post i must attach dynamically

    i must attach a word/image file dynamically..the above code does work only for static type.help me out
    SNIFFER

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,250
    Rep Power
    19

    Default

    What do you mean by "attach"?

    db

  5. #5
    sniffer139 is offline Member
    Join Date
    Feb 2010
    Posts
    19
    Rep Power
    0

    Exclamation attaching a file in email appln

    actually i am developing an email application so i need to attach documents n images ....means to save the files der ..in the mail...hope u got it!!!!!!!!!!!!!!!!!!!!!1
    SNIFFER

Similar Threads

  1. Replies: 2
    Last Post: 04-15-2009, 11:17 AM
  2. how to get rgb value each pixel of an image file
    By tOpach in forum New To Java
    Replies: 1
    Last Post: 03-28-2009, 04:38 PM
  3. How to set Image file path
    By anil.bharadia in forum AWT / Swing
    Replies: 1
    Last Post: 01-28-2009, 09:10 PM
  4. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 09:57 AM
  5. Regarding conversion of Image file to Video file
    By RamaDeviMsc in forum Advanced Java
    Replies: 0
    Last Post: 06-25-2007, 02:28 PM

Posting Permissions

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