I am looking for some help with applets(new to me). I have a graphic and need to have it resize itself when the size of my applet changes. Any direction would be greatly appreciated.
Thanks
Steve
hmmm, I am sure there is a better way that I don't know of.
but however, you could always set the size of the graphic as a dimension that is a percentage of the display area.
so if you are displying on a standard windows JFrame for example. just get the size of the frame and set your graphic to be frame size / 2 or something like that. then just have it redraw (and recalculated) everytime the frame is resized.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.