Peter Phung

Ranch Hand
+ Follow
since Dec 06, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Peter Phung

It's not really a solution but have you tried using a modal JDialog instead of a second frame?
22 years ago
can you post the stack trace from the error
How are you displaying the second applet? Are you trying to use the same html page as the first applet?
22 years ago
The value you return doesn't need to be generated from within the method itself. The value can be declared globally and then returned from the method.

i hope this helps.
[ July 24, 2002: Message edited by: Peter Phung ]
22 years ago
Can anyone tell me how i can write a string to a file?
I've already got

but clearly in is an InputStream and saveTable.getText(); is a string. How can i get around this?
22 years ago
Do i have to save the file with a specific file extension other than .txt?
22 years ago
can anybody tell me how i can save a JTable in a format that can be read easily by MS Excel?
thanks
22 years ago
please can anyone tell me how i can add a single item/object to a JList?
thanks
22 years ago
Hi everyone,
Can anyone please tell me how i can call a dialog from an applet?
Thanks
22 years ago
hi everyone,
I've written an applet but it is appearing larger than the display area. I havn't written any code which sizes the applet. can anyone tell me what i'm doing wrong?
My code :

This is the only code i have, no other parts of the GUI have been written.
22 years ago
I used SimpleDateFormat because that's all i needed.
Thanks to both Rene's, your help was much appreciated.
22 years ago
Everything's been sorted out now. I deleted all of the old class files and recompiled and it works fine.
It looks like the application was running an older class file.
22 years ago
I've written an application, it's working ok except that it's skipping a few lines of code. I'm not getting any compile time errors or any runtime errors. I've included part of my application where the code is being skipped, and the methods that it's meant to execute.

Please can anyone help me to solve this?
22 years ago
This sounds like a homework question so i'm not gonna give you much. But you should be looking at java.lang.string
http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html
22 years ago
How have you set up the html page in which your applet is embedded?
I wrote a page which loaded the plugin each time the page was accessed.
Here's the code i used :

HTH
[ July 10, 2002: Message edited by: Peter Phung ]
22 years ago