Actually I'd also like to post a couple follow up questions that are somewhat related, no sense in creating a new
thread.
First of all, the point of doing this was so that I could 'dock' these frames so that one frame takes up the left half and another the right half. I also want to add in functionality so that if the user resizes these windows that if they have chosen to have the windows scale with the frame that it will maintain it's current ratio. i.e. if it's half it will still be half. That's simple enough if I
know that I want to it to be half the screen, however, if the user changes the size to something different by resizing the internal frame then I no longer want it to be half, I want it to scale in size and position based upon what it is now.
So my question is how do I go about implementing this? I need some way of checking to see what the internal frame's sizes are
before resizing so I can maintain the same ratio. Is there an easy way of doing this? Do I have to add a component listener on every internal frame and when they are resized record what their size and location are and then use
that when I determine positions when my main frame is resized or what?
The other thing is I have an ImageDisplay widget that I created, it's for viewing, zooming, and otherwise manipulating an image. One of the things I want is for the scroll wheel to zoom in and out of the image. I've successfully implemented this feature, however, I've not found a good way of having it work all the time. In other words it only works when the ImageDisplay has focus, I want it to
always work and for it to do so on the last ImageDisplay that had focus (in case there is more than one, which is a possibility, though I doubt it).
Thanks.
[ January 18, 2004: Message edited by: Ken Blair ]