• Post Reply Bookmark Topic Watch Topic
  • New Topic

Canvas with ScrollPane  RSS feed

khushbushah shah
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
0 down vote favorite

I am developing java applet application, in which i have taken scrollpane and canvas with fixed height.

and i and writing some text using graphics.drawString() function.

now the problem is, when I write string using Drawstring() function,after last line I have to increase height of canvas and have to called paint() method (in code keyDown() function) .after paint method previous data which i have already draw using drawstring() function will not appeared. how to save content of canvas before paint() and and to redraw in canvas after paint()?

also i want to set scroll position to the

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!