I've written my applet to be 1.1 compliant though so that I wouldn't have issues with anyone who didn't have anything higher installed. I don't know what part of my code isn't 1.1 compliant. Do you see anywhere where it isn't? Thanks.
My applet is running in the background of a page. Then all of a sudden, this message will pop up ... java/lang/UnsatisifedLinkError Exception was not handled. I know it's an exception that I need to catch, but I can't figure out where it's occuring in my code or even why it's occuring. Does anyone see a reason that this would be happening? Thanks.
I have a thread executing inside of my applet and I've read that I shouldn't use the stop method of a thread to end it. Here's the scenario. I have one main .asp page that is loaded with every other page. Inside of this .asp page is my applet. So, the applet gets loaded every time someone changes pages. I need to kill the thread and restart it every time the person changes pages. When a certain time has arrived, I show a message box alerting the person that the time has arrived. The problem is that right now, I'm using the applets stop method...
... to try and end the thread the way I read about. But it's not working. Is there another way to do it without resorting to the deprecated stop method of the thread? Thanks.
I wrote an applet that has a pop up frame in it warning the user that an event has come due. At the bottom, it has the Warning: Applet Window message in the status bar. My boss is afraid that will freak out our customers if they see a warning message. Is there anyway possible that I can get rid of this? Thanks.
Nevermind, I figured out that I was getting this because I was opening the htm page on my own machine and the applet was trying to connect to one of our webservers. As soon as I let the applet run from the webserver, it all worked fine. It called the asp page which then updated the database.... wooohooooooo! Now, I can finally finish this project.
In my applet, I'm trying to call an .asp page that executes an update against our sql server database. I'm creating a url object and passing in the url to the asp page. I'm getting the following error and I'm not sure what I'm doing wrong. Thanks. java.net.UnknownServiceException: no content-type Here's my code for url portion of the applet...
This is the error message I get when my class tries to update a table in my sql server 7 database. java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver I'm running a simple update query inside of an applet (or at least trying to). I know it's not what you'd really want to do, but it's the only solution I've been able to figure out. I have an asp page that has numerous events for my user. Let's say I have an event scheduled for 9:30 and one for 10:45. My applet currently goes off at 9:30 and at 10:45 to alert the user that their event is due. However, at this point, I need to update the table and set the reminded field to true. So, this is why I'm doing it in an applet. If anyone can think of an easier way to do this portion of it outside of an applet on an NT server or something, please let me know. I'm new to java, so I'm not sure if I'm clear on the whole odbc jdbc driver issue. Does this look for the driver on the client machine where the applet is running? I assumed that and thought that the driver was part of java 1.1. If not, what do I need to do to load the driver and get this to work? Thanks a lot!!!
I open a window when an alert has happened, but if I try to click the x button in the top right corner, it won't close. Do I have to do something to build that functionality into the window? Heres my code. Thanks.
Thanks for your input and suggestions. I really appreciate it. As for why I'm extending Applet, I was doing that because the applet class provided me with the audioclip class so I can play an alarm sound. I wasn't aware of another way to be able to get the audioclip class without extending applet. I don't understand why you added 1 to the month though that is being returned by the calendar. I didn't see in Sun's documentation that the call to get the month returned the previous month. Is this the case or is there something else going on that I don't see? Thanks.
I've worked on this code for 2 days and I'm not sure why this applet won't run correctly. It's supposed to accept a parameter called Times which would have time values separated by the | symbol .... 10:15|14:20|8:30 ... and so on. Then it's supposed to create an alarm object for each time and the alarm object is supposed to go off and write to the screen whenever that time has been reached or exceeded. I'm pretty new to writing applets and java in general, so I'm not sure where I'm going wrong. It compiles fine with no errors, but it just won't sound the alarm or write to the screen when the time has been reached. Thanks.