Results 1 to 4 of 4
  1. #1
    eagerfiza is offline Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Default Applet Background image

    Hello

    I am new here. I have set an image as a background image in my java applet. Now I want to set that background image within specific coordinates. For example background image at the center of applet.

    Please post the java applet code for this task if u know about it.

    Waiting for your urgent reply.

    Regards

    Fiza

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,259
    Rep Power
    25

    Default

    Since the applet class extends the Panel class, any code that adds a background image to a Panel should work for you.
    There are lots of code samples on this forum. Do a Search.

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,839
    Rep Power
    8

    Default

    Quote Originally Posted by eagerfiza View Post
    I have set an image as a background image in my java applet.
    How? Chances are, you can probably use whatever code you already have as a starting point. Feel free to post it in the form of an SSCCE.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

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

    Default

    Quote Originally Posted by eagerfiza View Post
    Please post the java applet code for this task if u know about it.
    This isn't a code factory.

    Quote Originally Posted by eagerfiza View Post
    Waiting for your urgent reply.
    Read this.

    db

Similar Threads

  1. use image for background
    By tony_stark in forum AWT / Swing
    Replies: 1
    Last Post: 05-31-2011, 08:20 PM
  2. [Help] W/ background image
    By gundum584 in forum New To Java
    Replies: 9
    Last Post: 01-10-2011, 05:48 AM
  3. Background Image of Applet
    By BangJava in forum Java Applets
    Replies: 8
    Last Post: 11-24-2010, 05:48 AM
  4. Background image
    By leiferouis in forum New To Java
    Replies: 9
    Last Post: 03-08-2009, 05:49 PM
  5. Image as background
    By Java.child in forum AWT / Swing
    Replies: 2
    Last Post: 10-02-2008, 11:37 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
  •