How do i use "getImage();" in an application?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How do i use "getImage();" in an application?

Hybrid View

  1. #1
    Sadieur Guest

    How do i use "getImage();" in an application?


    I have been working with java for a month or so now; and I have been struggling
    with a certain concept. The compiler wont except getImage(); in a frame.
    Is there any way to get an image in a frame? PLEASE email me or post a message
    here.

    My email is: sadieur@yahoo.com

    Thanks,
    Sadieur

  2. #2
    Paul Clapham Guest

    Re: How do i use "getImage();" in an application?

    When you say "get an image in a frame" does that mean you want to PUT an
    image in a frame, or that you want to get an image FROM a frame? Or
    something else?

    PC2

    "Sadieur" <sadieur@yahoo.com> wrote in message
    news:3ae23375$1@news.devx.com...
    >
    > I have been working with java for a month or so now; and I have been

    struggling
    > with a certain concept. The compiler wont except getImage(); in a frame.
    > Is there any way to get an image in a frame? PLEASE email me or post a

    message
    > here.
    >
    > My email is: sadieur@yahoo.com
    >
    > Thanks,
    > Sadieur




  3. #3
    pepper_dog999 Guest

    Re: How do i use "getImage();" in an application?


    if you use the getImage() method in application, the compiler will not accept.instead
    you should use Image i=new BufferedImage();then use create image.but if you
    build a appleat embeded in the browser.the BufferedImage class will not be
    accepted.this time you should use the getImage() method
    although the compiler will not accept.but in browser will work correactly.

    "Sadieur" <sadieur@yahoo.com> wrote:
    >
    >I have been working with java for a month or so now; and I have been struggling
    >with a certain concept. The compiler wont except getImage(); in a frame.
    >Is there any way to get an image in a frame? PLEASE email me or post a message
    >here.
    >
    >My email is: sadieur@yahoo.com
    >
    >Thanks,
    >Sadieur



  4. #4
    Rajkamal Gopinath Guest

    Re: How do i use "getImage();" in an application?


    Hi

    "Hope if this is what you are looking for"

    Use getToolkit() method from the Frame which returns the Toolkit object which
    has methods to create Image object

    getToolkit().createImage(URL);

    Regards

    Rajkamal

    "pepper_dog999" <liuji@topgroup.com> wrote:
    >
    > if you use the getImage() method in application, the compiler will not

    accept.instead
    >you should use Image i=new BufferedImage();then use create image.but if

    you
    >build a appleat embeded in the browser.the BufferedImage class will not

    be
    >accepted.this time you should use the getImage() method
    >although the compiler will not accept.but in browser will work correactly.
    >
    >"Sadieur" <sadieur@yahoo.com> wrote:
    >>
    >>I have been working with java for a month or so now; and I have been struggling
    >>with a certain concept. The compiler wont except getImage(); in a frame.
    >>Is there any way to get an image in a frame? PLEASE email me or post a

    message
    >>here.
    >>
    >>My email is: sadieur@yahoo.com
    >>
    >>Thanks,
    >>Sadieur

    >



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