Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need help in highlighting tree nodes

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Thanked 0 Times in 0 Posts

    Post Need help in highlighting tree nodes

    Hello All,

    Requirement is to compare two trees and highlight the difference by coloring the nodes of both trees. Trees are loaded into split panes to compare.

    Able to highlight the tree nodes using Cellrenderer and its working fine for small trees.

    But when i load a trees of 600000 children then its throwing Stack Overflow exception during highlighting the node using CellRenderer.

    Is there any alternative way to achieve this?
    Please help me in this... Thanks in Advance.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 698 Times in 595 Posts

    Default Re: Need help in highlighting tree nodes

    Can you show us an SSCCE that demonstrates what you're doing?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    My Mood
    Thanked 263 Times in 232 Posts

    Default Re: Need help in highlighting tree nodes

    Quote Originally Posted by rahulha View Post
    But when i load a trees of 600000 children then its throwing Stack Overflow exception
    Surely you do not display 600000 elements at once. At 1024x768 they would each be about 1 pixel in size...
    Work with subsets of the whole

Similar Threads

  1. Replies: 1
    Last Post: August 4th, 2012, 06:55 PM
  2. Replies: 1
    Last Post: March 18th, 2012, 12:16 PM
  3. java syntax highlighting
    By Saulius in forum Java Theory & Questions
    Replies: 2
    Last Post: August 24th, 2011, 05:47 AM
  4. Replies: 2
    Last Post: January 21st, 2011, 01:07 AM
  5. New Syntax Highlighting Feature!
    By JavaPF in forum Forum Updates & Feedback
    Replies: 15
    Last Post: July 14th, 2010, 09:20 AM