Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Start Applet not initialized

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11445
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43016
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
text3 is null.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic