File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes image and buttons in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "image and buttons in applet" Watch "image and buttons in applet" New topic
Author

image and buttons in applet

holger_sanchez
Greenhorn

Joined: May 23, 2005
Posts: 5
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

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.


[Jess in Action][AskingGoodQuestions]
holger_sanchez
Greenhorn

Joined: May 23, 2005
Posts: 5
thanks for your support
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: image and buttons in applet
 
Similar Threads
Create Image object
Image in a Panel.. need help urgently..!!
Applet Size
image
disabling resize button