• Post Reply Bookmark Topic Watch Topic
  • New Topic

drawImage with scroll bars  RSS feed

 
Ignas Sliuzas
Greenhorn
Posts: 13
Firefox Browser Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried all kind of things but I feel I'm a bit too inexperienced for this. I need to get scroll bars whenever method drawImage(image, x, y, this) draws something out of bounds. I don't really want to post all of my code it's just a load of rubbish and I plan on remaking this part from scratch. Any advice on how I should plan my work?

I know I need to somehow link drawImage with JScrollPane but I have no idea how to do that.

I need to go to sleep now, will check this in the morning hope I get some help.

thanks.
 
Rob Spoor
Sheriff
Posts: 21052
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the preferred size, then revalidate.
 
Ignas Sliuzas
Greenhorn
Posts: 13
Firefox Browser Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot seems I've got it all working.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!