Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Applets

Status
Not open for further replies.

bigred925

MIS
Jul 6, 2001
15
US
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.

i had some code somewhere let me check...
 
pipk if you have some code for me to look at that would be great.
Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top