This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image and buttons in applet

 
holger_sanchez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have got a question.
How can i get an image and two buttons for zooming the picture together in one applert I don't know how to programm this, because the paint() method only draw the image into the applet and no Buttons are available
Please help me
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" and joke names aren't acceptable here. You can change your display name here. Thanks!

Second, please don't post the same question to multiple forums -- it just wastes people's time answering questions that have already been answered elsewhere. I've deleted the other copy of this question.

Finally, as to your question: you do painting in paint(), and you set up buttons and things in your init() method. You might do the drawing into a separate panel, and add this panel and the buttons all to the applet.
 
holger_sanchez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your support
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic