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.


>> REGISTER NOW TO START POSTING


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
    Posts
    1
    Thanks
    0
    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.

    Regards
    Rahul


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Need help in highlighting tree nodes

    Can you show us an SSCCE that demonstrates what you're doing?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    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, 02:07 AM
  5. New Syntax Highlighting Feature!
    By JavaPF in forum Forum Updates & Feedback
    Replies: 15
    Last Post: July 14th, 2010, 09:20 AM