Applet Image Changing and Passing Information back to a web app

Reply

Join Date: Jun 2008
Posts: 1
Reputation: Csait is an unknown quantity at this point 
Solved Threads: 0
Csait Csait is offline Offline
Newbie Poster

Applet Image Changing and Passing Information back to a web app

 
0
  #1
Jun 4th, 2008
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
Last edited by Csait; Jun 4th, 2008 at 3:09 pm. Reason: additional info (title change)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC