TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- what's wrong with my Applet?
what's wrong with my Applet?
code:
import javax.swing.JApplet; import javax.swing.JOptionPane; import java.awt.Graphics; public class ticker extends JApplet{ private String tickText; public void init(){ tickText = JOptionPane.showInputDialog(null,"Enter text:"); } public void paint(Graphics g){ super.paint(g); g.drawString(tickText,25,25); } }
code:
by the way.. i'm way leeter than what might appear.. it's just that i'm new to applets 
just incase u were thinkin i was a lamo!
| quote: |
| Originally posted by UglyDave by the way.. i'm way leeter than what might appear.. it's just that i'm new to applets ![]() just incase u were thinkin i was a lamo! |
| quote: |
| Originally posted by UglyDave by the way.. i'm way leeter than what might appear.. it's just that i'm new to applets ![]() just incase u were thinkin i was a lamo! |
| quote: |
| Originally posted by UglyDave by the way.. i'm way leeter than what might appear.. it's just that i'm new to applets ![]() just incase u were thinkin i was a lamo! |
lots of useful feedback here 
where's DigiNut??
he usually knows his shit 
i guess it's a big non-leet of me to be askin in the first place, but ah well 
i plan on makin loads of wee web apps and givin them away for free..
so far i've made a guestbook, user tracking devices.. and now i'm gonna start applets 
My Swing is a little bit rusty, but does that init method ever actually get executed? If not, then you're trying to draw a string that hasn't been initialized.
What exactly is the error?
only msg i get is:
"applet ticket notinited"
which is in the status bar of the browser.
thank goodness! DigiNut is on the case!
Oh, I see it.
You called the applet "ticker" and tried to embed class "ticket" into the HTML.
Doofus. 
| quote: |
| Originally posted by DigiNut Oh, I see it. You called the applet "ticker" and tried to embed class "ticket" into the HTML. Doofus. |



Sure you are Dave, suuuuuure you are. 
Well as long as it's fixed. Should say code="tickeR.class". 
| quote: |
| Originally posted by DigiNut Should say code="tickeR |

damn this is slow.
why the hell is java so slow anyways?
javax.swing.Timer?
Java is slow because it's a burning smelly mountain of diseased pubic hair.
| quote: |
| Originally posted by DigiNut javax.swing.Timer? Java is slow because it's a burning smelly mountain of diseased pubic hair. |
Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.