0

I have done MyCanvas class which extends GCanvas class, now I want to use and add this canvas another program, I have done this, but now I want to add scrollbar for canvas and I have no idea how to do it, I have read some examples but it was difficult to understand, I would be grateful if someone will tell me :) ( I use java)

mKorbel
  • 109,525
  • 20
  • 134
  • 319
user3123521
  • 79
  • 1
  • 1
  • 8

1 Answers1

3

Have you tried JScrollPane scroll = new JScrollPane(MyCanvas);?

Sergi
  • 579
  • 3
  • 14