Debbie Figg

Greenhorn
+ Follow
since Feb 21, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Debbie Figg

Hi,
I have an applet that displays two screens and a button is used to transfer between them. The way I need to do it (it's a course project) is to remove all the previous objects using removeAll, create the relevant objects for the new panel and then use repaint to display everything.
The trouble is, when I press the button, nothing seems to happen until I move my mouse, then everything disappears and the only way I can get the new panel to display is to click somewhere on the applet window's border. Then everything in the new panel displays perfectly.
So does anyone know of a way to make the applet display the new panel on it's own without any input from me?
The relevant code I'm using is:

Debbie-Leigh
16 years ago
Oh yes, I suppose that's the other thing that would have made it work - duly noted.
Thanks again.
Debbie
16 years ago
Oh, another thought ... does that mean that applets can't be members of a package as I haven't read anything yet pointing this out?
Debbie
16 years ago
Hi Marilyn,
Wow, that's it. I just knew it would be something so simple.
I did put a package name there as one of my tests to try and get it working, but I had commented it out, so I didn't think any more of it. Now I've deleted it, it works a treat.
How very strange!?
Thank you so much for helping.
Debbie
16 years ago
Hi Marilyn,
In Preferences, I have:
Command: appletviewer.exe
Parameters: $BaseName
Initial Folder: $FileDir
which is slightly different, but I don't think the .exe would make any difference would it?
Debbie
16 years ago
Hi Marilyn,
I use textpad so it uses the same directory that the html and class files are in.
Debbie
16 years ago
Hi Rob,
I'm using WinXP Pro, the JRE is 1.4.2 and the SDK is 1.4.0.
Yes, I suspected it might have something to do with my setup, but I just can't figure out what it could be. I've tried all sorts of ideas from the forums, but nothing seems to work. It still says "wrong name" and gives the last bit of the path to my applet. I don't know why it only shows that bit rather than the full path. Running it through the appletviewer from the command prompt also gives the same error.
Could you suggest anything I could try to correct my set up? (Java applications still run perfectly, though).
My Classpath contains: .;E:\Web\Web Projects\Java
Thanks.
Debbie
16 years ago
Hi,
I'm new to java and am having a problem when I try to run an applet. It compiles OK, but when I try to run it using the appletviewer the console window shows this message:
java.lang.NoClassDefFoundError: HelloApplet (wrong name: fund2/lesson1/HelloApplet)
The last bit (fund2/lesson1) is the last bit of the path to the HelloApplet.
and the applet window shows:
Start: applet not initialized
The code for the applet is:

The code for the html is:

Not even the H1 title appears in the applet window.
The Classpath variable does contain the path to my applet folder and both the class and html files are in the same folder under this path.
I hope someone can suggest where I'm going wrong as I've been tearing my hair out trying to get this working.
Thanks in anticipation.
Debbie-Leigh
16 years ago