• 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

re-repaint

 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the tree section of the Swing Tutorial
reply
    Bookmark Topic Watch Topic
  • New Topic