File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Start Applet not initialized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Start Applet not initialized" Watch "Start Applet not initialized" New topic

Start Applet not initialized

saurabh code sharma

Joined: Jul 10, 2013
Posts: 1
I have created an applet and it is not working. When i try to run it in appletviewer it says Start Applet not initialized. Following is my code:

<div >
<APPLET CODE="FormAction.class" WIDTH="800" HEIGHT="500">

import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class FormAction extends Applet implements ActionListener{
TextField text1;
TextField text2;
TextField text3;
Button button1;

public void init(){
setLayout(new FlowLayout());
button1 = new Button("Submit");
text1 = new TextField();
text2 = new TextField();
text2 = new TextField();



public void actionPerformed(ActionEvent evt){
if(evt.getSource() == button1){
text3.setText(text1.getText() + " " + text2.getText());

Can anyone please help me pointing out where am I wrong.
Thank You
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10836

Welcome to the Ranch.
Can you copy paste what you see on your java console after running the applet?

Also please check your private messages for an important administrative matter

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
text3 is null.
I agree. Here's the link:
subject: Start Applet not initialized
jQuery in Action, 3rd edition