Results 1 to 4 of 4

Thread: JComponent TreeCell Rendering

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    JComponent TreeCell Rendering

    Hello

    I've been playing with extending DefaultMutable TreeNode as i want to show alot of information on a node, Now my nodes work ok and update as i want them to, i've made each node return to me a JComponent whicd is made up of a Progress Bar and JLabel etc.. Look at the pictur ei've attached and you'll gather what i am trying to do.

    The problem with them is that the bottom edges seem to be cliped when i use the Windows Look and Feel, have i missed something obvious? or is the windows L&F affecting my Nodes?!
    Under the linux look at feel, metal i think its called the tree cells seem to resize to the correct size, but no sich luck in the Windows one...

    Any ideas?

    Cheers Andy
    Attached Images Attached Images  

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Seems like the Windows L&F reports the wrong height, maybe a relic from pre-XP look?

    Metal is the Java L&F btw.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Oh Dear

    Oh dear.. thats a shame, don't suppose you know of any work around i could implement do you, or how to get the latest XP L&F?

    Cheers

    Andy

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No, sorry.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width