| | |
Applet Image Changing and Passing Information back to a web app
![]() |
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Solved Threads: 0
Hello,
So my applet: image (in a Canvas object), drop down list, radio box group, and a submit button.
Have 2 problems that I need to figure out:
The applet is working the way it should until submit button processing, it gets parameters from web page that it's embedded in and all and uses that information in the init() to modify the applet so that it's shown correctly. Then it gathers information from the user interfacing with the applet (Select drop down choice (direction), select radio button choice (antenna), click on the image (CanvasMouseClicked(java.awt.event.MouseEvent)), that's when I hit first problem.
1. I'm newish to applets and I'm unsure how I manipulate the Image that is placed on the canvas in order to place another image, (basically a box with a number and an arrow going off it) on top of the other image that was already loaded into the canvas. The file doesn't need to change until it is done getting info from all the different radio box options, so I don't really need to repaint although that would be nice. Can this be done with a BufferedImage and if so what would I need to do??
2. Once all the data has been gathered I then need to kill the applet and progress to the next page in the Web Application, the file changes can be persisted through just over-writing the file, but how do I obtain all the other information that was input into the applet? I have an Antenna Class that I made that is storing all the information from the different radio box options (antenna choices) is there a way to pass this object back to the web application? Is it possible to create another file from an applet, so that I can maybe just parse out all the information, or can I store it all in a DB? As I mentioned I'm new-ish to applets so I'm not exactly sure what you can do with them.
Any help would be appreciate
Oh if it matters at all the Web app and applet are being created in Netbeans 6.0 with visual tools
So my applet: image (in a Canvas object), drop down list, radio box group, and a submit button.
Have 2 problems that I need to figure out:
The applet is working the way it should until submit button processing, it gets parameters from web page that it's embedded in and all and uses that information in the init() to modify the applet so that it's shown correctly. Then it gathers information from the user interfacing with the applet (Select drop down choice (direction), select radio button choice (antenna), click on the image (CanvasMouseClicked(java.awt.event.MouseEvent)), that's when I hit first problem.
1. I'm newish to applets and I'm unsure how I manipulate the Image that is placed on the canvas in order to place another image, (basically a box with a number and an arrow going off it) on top of the other image that was already loaded into the canvas. The file doesn't need to change until it is done getting info from all the different radio box options, so I don't really need to repaint although that would be nice. Can this be done with a BufferedImage and if so what would I need to do??
2. Once all the data has been gathered I then need to kill the applet and progress to the next page in the Web Application, the file changes can be persisted through just over-writing the file, but how do I obtain all the other information that was input into the applet? I have an Antenna Class that I made that is storing all the information from the different radio box options (antenna choices) is there a way to pass this object back to the web application? Is it possible to create another file from an applet, so that I can maybe just parse out all the information, or can I store it all in a DB? As I mentioned I'm new-ish to applets so I'm not exactly sure what you can do with them.
Any help would be appreciate

Oh if it matters at all the Web app and applet are being created in Netbeans 6.0 with visual tools
Last edited by Csait; Jun 4th, 2008 at 3:09 pm. Reason: additional info (title change)
![]() |
Similar Threads
- Help to show updated image in applet [Sort of chaninging graph] (Java)
- Java image programming question (Java)
- thx but how do i display an image in java (Java)
- diplaying .gif image in JApplet (Java)
- design including image slider for osCommerce (Software Development Job Offers)
- Applet Image Displaying (Java)
- Java Applet viewer blinks everytime the init method is used. (Java)
Other Threads in the Java Forum
- Previous Thread: Applet Loading Failed........
- Next Thread: ChessBoard help with classes
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card character class client code collision component crashcourse css csv database eclipse ee error fractal free game gis givemetehcodez graphics gui html ide image integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linux list loan machine map method methods migrate mobile netbeans newbie objects oriented output panel phone physics problem program programming project projects radio recursion replaydirector reporting researchinmotion scanner se server service set sms software sort sql string swing test textfield threads transfer tree trolltech ubuntu utility windows





