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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with JComboBox -----------

Status
Not open for further replies.

DaniDak

Technical User
Mar 13, 2002
44
US

My problems is as follow. I have a JFrame that displays a picture, furthermore I have a zoom button, which calls the zoomIn method, inside the method I have instantiate a class ComboDialog which display a JFrame(200x90) in size over the already displayed JFrame containing the picture (parent frame). ComboDialog class creates a JComboBox containing numbers(50, 100, 150, 200...)representing zooming values in percent.

My question is, when I select a value or enter a value how do I make the picture in the parent Frame larger by the value selected. Any suggestions are welcome.

Thank you
 
Have you tried simply using your "zoom" value as a scalar on the JFrame's Dimensions and setSize() and refresh?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top