DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    display an image in JTree background *solved*

    How could I display an image that stays centered in the background of a JTree, with the tree's nodes (text) being displayed over top of it?

    problem sorted out
    Last edited by Phaelax; 12-26-2005 at 05:42 AM.

  2. #2
    Join Date
    Mar 2004
    I've tried overriding the paint() method of the component which contains the JTree, and even with setting the JTree's renderer object's setOpaque(false) I have no luck. Sometime's the image shows with no tree, but when i click a tree node, it'll even cover everything or parts of the image. Is there a way to do this without having to completely customize how the tree is drawn?

Similar Threads

  1. Background image
    By bmistree in forum Java
    Replies: 1
    Last Post: 07-13-2005, 10:12 AM
  2. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 11:45 AM
  3. Background Image?????
    By PaWz! in forum Java
    Replies: 1
    Last Post: 04-25-2001, 10:57 AM
  4. Background Image?????
    By PaWz! in forum Java
    Replies: 0
    Last Post: 04-24-2001, 11:47 AM
  5. table background image in netscape
    By steve in forum Web
    Replies: 1
    Last Post: 11-14-2000, 09:52 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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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