Ok, I have a decent foundational understanding of programming concepts and web design. I decided to learn Java and it's frustrating me like crazy, running into problems at every turn.
I'm just trying to get the simplest possible applet to work.
My code is
import java.awt.*;
import java.applet.Applet;
public class MyFirstApplet extends Applet {
public void paint (Graphics g) {
g.drawString("This is my first Applet!!!", 100, 25);
}
}
My html is
<HTML>
<HEAD>
<TITLE>My First Applet</TITLE>
<BODY>
<CENTER>
<APPLET CODE = 'MyFirstApplet.class' WIDTH = 100 HEIGHT = 25 </APPLET>
</CENTER>
</BODY>
</HTML>
I have Windows 7 Ultimate 64-bit. I have both 32-bit and 64-bit java installed because I use firefox. After searching and searching, I finally realized I compiled this with the 64-bit Java(if thats correct? and if that matters?) and I was trying to run it in Firefox(32-bit) and Internet Explorer(32-bit version). I opened 64-bit IE and something finally happened but all it showed was the word "This ".
What in the world am I doing wrong?
[EDIT - I just now realized that if I zoom waaaaaay in, I can see the full text that I should.. in both firefox and IE. I don't have any unusual display settings though, and the text stays the same size, but just shows more with each increase in zoom. Is this normal? Do I just need to learn more about how applets are displayed before going any further trying to figure this out?]