This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

re-repaint  RSS feed

 
Pranav Sharma
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.
 
Joe Ess
Bartender
Posts: 9428
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!