• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Paint Binary Search Tree to Scroll Pane in GUI

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic