|
|
|
|
![]() ![]() |
Feb 16 2008, 04:40 AM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 10 Joined: 15-February 08 Member No.: 28,454 |
I'v just started to study JAVA. And I borrowed a book, Great Ideas in Computer Science with JAVA.
But I can't loading any applet written on the text. I use firefox to load applet. Does anyone know why the applet can't be loaded? sample code is below. CODE import java.awt.*;
public class HelloWorld extends java.applet.Applet { TextField m1,m2; public void init() { m1 = new TextField(60); m2 = new TextField(60); m1.setText("H e l l o W o r l d !"); m2.setText("This is a simple Java test."); add(m1); add(m2); } }
Reason for edit: Please use the CODE tag when posting code snippets
|
|
|
|
Feb 16 2008, 08:47 AM
Post
#2
|
|
|
Premium Member Group: [HOSTED] Posts: 393 Joined: 9-March 07 From: Tucson, AZ Member No.: 20,794 |
Does it load as an applet in your IDE? I suggest using eclipse for java development.
|
|
|
|
Feb 18 2008, 02:20 PM
Post
#3
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 10 Joined: 15-February 08 Member No.: 28,454 |
|
|
|
|
Feb 20 2008, 11:09 PM
Post
#4
|
|
|
Member [ Level 1 ] Group: [HOSTED] Posts: 47 Joined: 4-February 08 Member No.: 28,119 |
Firefox does not support Java with default installation.
So, before running applets in Firefox you need to install JavaRuntime Environment plugin. You can install it from here (see Java section): https://addons.mozilla.org/en-US/firefox/browse/type:7 |
|
|
|
Jul 8 2008, 11:08 AM
Post
#5
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
how do we upload java applets on free website hosts?
Java Applet Loading Error I hv just started learning java. I m able to view the output of the applets in my web browser but when I upload them on my website I m not able to see the output of the java applet. My website supports html files and when I upload html files I m able to see the o/p. Please help me and let me know the problem -reply by abhishek |
|
|
|
Jul 22 2008, 11:37 AM
Post
#6
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
software (Library management)can not run
Java Applet Loading Error Java applet can not run null.Int.Lang. Pointer exception error show -reply by riya |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 30th August 2008 - 12:28 PM |