White Applet Background


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: White Applet Background

  1. #1
    Join Date
    Nov 2005
    Location
    Siskiyou County, Yreka, CA.
    Posts
    1

    Unhappy White Applet Background

    I have a site at http://www.geocities.com/wo33lee/ ---- When i built this site back in 1998 i was using Win95, my background color on site is BLK.

    Now viewing with WinXP and the onboard Sun Java program, in all my Java applets i see a white boxy background.

    How can i get the applet background back to black so it blends into my webpages? Is there anything i can put into the applet source code that will help.
    Thanks, Lee

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Applet is a subclass of java.awt.Component and it inherits the setBackground() method. Use that.

    Code:
    setBackground(java.awt.Color.BLACK);
    Happiness is good health and a bad memory.

  3. #3
    Join Date
    Oct 2005
    Posts
    107
    That applet is nuts..
    How much code did that take?

    yeah your gonna have to set the background to black in your paint method

Similar Threads

  1. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 12:45 PM
  2. Replies: 3
    Last Post: 08-23-2001, 12:01 PM
  3. SQL Tutorial (Answer Q's & post your reply)
    By bigbastard4 in forum Database
    Replies: 2
    Last Post: 05-16-2001, 07:24 PM
  4. Image as applet background
    By Dave O'Donnell daveod:entro.ie in forum Java
    Replies: 0
    Last Post: 03-05-2001, 08:05 AM
  5. background applet transparent
    By Sjef in forum Java
    Replies: 1
    Last Post: 06-09-2000, 09:38 AM

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