• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

re-repaint  RSS feed

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i change my post in anyway, so that i could get some help.(What i exactly want is to draw or redraw the tree when i have calculated the nodes and predecessors. Or if u guys know where i could get some sample code where i could learn more)

hi
i was wondering if someone could help me with a problem.
never used awt or swing(just read up abt them)
iam trying to build a visual of a tree from given set of nodes.

Have to make a java application
After manipulating data, i get the data for drawing the tree.
the problem is that once i get the data after calculations how do i draw a tree from this. (i have seen sample programs wherein the paint method is pre written). i tried to use repaint() but dint seem to work.
any help will be appreciated.
 
Bartender
Posts: 9559
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the tree section of the Swing Tutorial
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!