Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Panel --  RSS feed

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
3 urgent questions, do help pls
first question:
There is a large image in a scrollPane, how can i know which part is displayed to user? for example, the part from pixel(10,10) to (610,810)is shown in screen, how can i know it??
second question:
if user is watching a "flower" in the center of the panel, once user presses the zoom out button, the whole image will be amplified. How can i make sure the "flower" still be shown in the center, won't go to right-down coner of the panel.
third question:
If i wanna the part from pixel(400,400) to (500,500) to be in the center of the panel, how can it do it??

thanks in advance
thanks in advacne
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!