aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Paint Binary Search Tree to Scroll Pane in GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Paint Binary Search Tree to Scroll Pane in GUI" Watch "Paint Binary Search Tree to Scroll Pane in GUI" New topic
Author

Paint Binary Search Tree to Scroll Pane in GUI

Kyle Woolsey
Greenhorn

Joined: Jul 07, 2011
Posts: 2
Hi, I am making a GUI which will allow a user to enter in values and have them displayed visually in a binary search tree. I think the code I am using to create the binary search tree should work, but am having trouble calling the class with the paint instructions to my GUI(scroll pane) as it immediately requires a value, before I can enter one, and throws a null pointer exception.

How can I call the class which creates the Binary Search Tree without throwing this exception

GUI Class





Tree Panel Class which creates Binary Search Tree





Thanks Kyle
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Paint Binary Search Tree to Scroll Pane in GUI
 
Similar Threads
Stupid DefaultMetalTheme problem
Gett8ing focus when 2 JTrees in same panel.
Adding background image to JDesktopPane?
JTree / DataModel Confusion
Adding background image to JDesktopPane