Image


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Image

  1. #1
    Johannes Guest

    Image


    Hi,

    does anyone know if there is a possibility to create an image without useing
    the applet class?

    Thanks for advise

    Johannes

  2. #2
    Paul Clapham Guest

    Re: Image

    Yes, there are all kinds of ways. Do you have a specific problem?

    "Johannes" <JohnGuitar@gmx.de> wrote in message
    news:3c6bb7a6$1@10.1.10.29...
    >
    > Hi,
    >
    > does anyone know if there is a possibility to create an image without

    useing
    > the applet class?
    >
    > Thanks for advise
    >
    > Johannes




  3. #3
    Johannes Guest

    Re: Image


    The problem is maybe very easy for you:
    How can I load an image from a file like MyFile.jpg?

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >Yes, there are all kinds of ways. Do you have a specific problem?
    >
    >"Johannes" <JohnGuitar@gmx.de> wrote in message
    >news:3c6bb7a6$1@10.1.10.29...
    >>
    >> Hi,
    >>
    >> does anyone know if there is a possibility to create an image without

    >useing
    >> the applet class?
    >>
    >> Thanks for advise
    >>
    >> Johannes

    >
    >



  4. #4
    Kent Guest

    Re: Image


    Johannes,

    You can load a jpeg with code like this:

    //////////////////////////////////////////////
    ImageIcon img = new ImageIcon("filename.jpg");
    //load image into ImageIcon object

    JLabel imageLabel = new JLabel(img);
    //now have a component that contains the image
    //component can be used in normal way (add to content pane etc.)
    //////////////////////////////////////////////

    Hope this helps,

    Kent



    "Johannes" <JohnGuitar@gmx.de> wrote:
    >
    >The problem is maybe very easy for you:
    >How can I load an image from a file like MyFile.jpg?
    >
    >"Paul Clapham" <pclapham@core-mark.com> wrote:
    >>Yes, there are all kinds of ways. Do you have a specific problem?
    >>
    >>"Johannes" <JohnGuitar@gmx.de> wrote in message
    >>news:3c6bb7a6$1@10.1.10.29...
    >>>
    >>> Hi,
    >>>
    >>> does anyone know if there is a possibility to create an image without

    >>useing
    >>> the applet class?
    >>>
    >>> Thanks for advise
    >>>
    >>> Johannes

    >>
    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center