"applet not initialized " error message  HELP !

My applet compiles ok but when I try to run it at the bottom of the screen it says
start : "applet not initialized"
note - it works ok compiling from the Window console and then opening
the .html file in the browser, but when I try the same applet in the
BlueJ IDE ....that is when I get an error message.
Thank you in advance
import java.awt.*;
import objectdraw.*;
//A program that produces an animation of the rising and setting sun
//The animation is driven by dragging the mouse
public class ScrollingSun extends WindowController
private FilledOval sun; // circle that represents the sun
//Place the sun and some brief instructions on the screen
public void begin()
sun = new FilledOval(100,150,100,100,canvas);
sun.setColor(Color.yellow);
new Text("Drag the mouse up or down", 20,20,canvas);
//Move the sun to follow the mouse's vertical motion
public void onMouseDrag(Location mousePosition)
sun.moveTo(100,mousePosition.getY() );
<html>
<head>
<title> ScrollingSun
</title>
<body>
<applet
archive = "objectdraw.jar"
codeBase = "."
code = "ScrollingSun.class" width = 800 height = 800 >
</applet>
</body>
</html>

I put a start() around the begin() method
and a public void init() method around the onMouseDrag() method
but I am getting an "illegal start of expression" error message
Thank you for your advice
import java.awt.*;
import objectdraw.*;
//A program that produces an animation of the rising and setting sun
//The animation is driven by dragging the mouse
public class ScrollingSun extends WindowController
   private FilledOval sun;   // circle that represents the sun
  public void start()
      //Place the sun and some brief instructions on the screen
      public void begin()
         sun = new FilledOval(100,150,100,100,canvas);
         sun.setColor(Color.yellow);
         new Text("Drag the mouse up or down", 20,20,canvas);
   public void init()
       //Move the sun to follow the mouse's vertical motion
       public void onMouseDrag(Location mousePosition)
         sun.moveTo(100,mousePosition.getY() );
}

Similar Messages

  • Re: class can't be instantiated/ applet not initialized error

    I would change the following:
    From:
    public abstract class AmazingApplet extends JApplet implements ActionListener
    to:
    public class AmazingApplet extends JApplet implements ActionListener
    Also, since your class implements ActionListener, you must have an actionPerformed method (to take care of the addActionListener that you used all over the place.
    V.V.

    Thanks Viravan,
    When I remove "abstract", I get the following error message:
    AmazingApplet.java:7: AmazingApplet should be declared abstract; it does not define actionPerformed(java.awt.event.ActionEvent) in AmazingApplet
    public class AmazingApplet extends JApplet implements ActionListener
    Also, I do have actionPerfomed method in the program. Any suggestions?

  • Not Authorized Error Message - Help

    I successfully copied my songs to an external hard drive to save space on my PC - when I went to sync my ipod I was given the following error message for all the songs I've purchased from itunes over the years:
    "Song X" was not copied to your ipod because you are not authorized to play it on this computer.
    I purchased all the effected songs legally from itunes so I'm not sure what that means.
    Does anyone know how to fix this or who to call?

    Try playing a few seconds of the song on your computer first, then resync your iPod.

  • Applet not initialized, when I uninstall JRE1.4.1_24 on Win NT 4.0

    We have uninstalled JRE1.4.1_24 from Win NT4.0 system and installed JRE1.3.1_08. Applet not initialized error coming up when the broser tries to open applet. Please help.

    The Windows Java uninstall doesn't do a good job cleaning up after itself.
    I ended up having to reinstall JRE1.4 to getting it working again.
    Eugenio

  • TS1544 "keychain not found" error messages pop up all the time, please help!

    Hi, Ive been constantly getting "keychain not found" error messages ever since i updated to OS X and cant sync messages, facetime, calendars etc. i've tried keychain first aid and get this message:
    Verification started
    Checking keychain configuration for Lee (user ID=501)
    Home directory is /Users/Lee
    Checked login keychain
    Error: login keychain not found
    Unable to get info for ~/Library/Keychains/login.keychain, reason: The operation couldn’t be completed. No such file or directory
    Checked default keychain
    Checked keychain search list
    Problems were found; you should choose the Repair option to fix them
    Verification failed
    Can anyone help?
    Thanks

    Is there a login.keychain in /Users/username/Library/Keychains/? The message says not. If not, create a new one or restore the one residing in your bootable backup/clone or Time  Machine backup.

  • Help opening file - file not found error message

    When I try to open an excel file that shows up in the finder, excel opens but then I get a "file not found" error message.
    Any ideas what is going on?

    Hi Ceeblee,
    SOLVED
    How ?? This is a forum for sharing solving problems. So even you solved your own issue it would be helpful for others who read your topic to know how you solved. This could be helpful for future problems for other users.
    Thanks ...
    Dimaxum

  • Chat applet not initialized???

    OS X on iMac...try to log in yahoo Chat but I get an error message " applet not initialized " I check every HELP suggestion but none will do nor does it properly address the issue. How does one initialize applet? Some say uninstall Java then re-install but OS X doesn't allow me to uninstall JAVA which came preinstalled. The funny thing is that the bottom portion of the yahoo chat site works but the chat area is blank.
    Can anyone help? .Mac support guys are useless they only want money! they will not offer any assistance until a payment is made. Even then they can't guarantee anything. can anyone help me? I want to CHAT ON YAHOO.
    David no say in yahoo.

    Example settings for chat, based on Safari browser:
    In Safari, select Preferences > Security > Web Content. Make sure the three check boxes pertaining to Java - "Enable Plugins", "Enable Java" and "Enable JavaScript" are active.
    Some web chat providers also require that you install their client software.
    Having never used such services, I do not know if this applies to Yahoo, or if they provide suitable client software for Mac OS X users.

  • First please read this- applet not initialized

    I read forums topic which is relational with applet errors but I couldnt solve my problem.
    I developed a program with php and mysql.there isnt any printing library for php under linux.so I am using an applet for printing.I could use javascript but I dont want to show printer dialog so I chose java applet.in my htdocs directory I put class file and all other php files are there too.when I want to run this php file which has inside applet tag it shows me "applet not initialized".so can you help me for this?that applet works on my pc but in server it didnt work.what is wrong with server or apache?I set up j2sdk to server too but I couldnt solve this problem something wrong with apache maybe it cant find the class file or do I have to recognize java files to apache like php?
    it is really important for me.if you can help I ll be glad.thanks for all

    I developed a program with php and mysql.in php file I am using applet tag to print out some informations.when I connected from client to the server.in that page I cant run applet.in client browser I have java plugin too.if I tried applets and also this print applet in my laptop it is working but if I put them into the server and if I connect from client applet isnt working problem is this.please someone help me

  • Hp 5535 will not scan, error message printer not found

    I have a HP Envy 5535. I have only been able to scan one time with it. I scanned 22 documents, after running HP Scan Doc 4.4. Each time the HP Scan Doc states that everything is OK, yet as soon as I try to do even a test scan, I get the error message "Printer not found." I have also tried to run this scan with my McAfee virus firewall off, and it still doesn't work. I have also identified it on McAfee as part of my network.
    This question was solved.
    View Solution.

    Hi @prazdancr,
    Welcome to the HP Forums!
    I am sorry that you cannot scan with your HP Envy 5535, but I am happy to help!
    For further assistance I will need to know:
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, or USB.
    If the printer is able to make copies by itself.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    In the meantime, please try going through this scanning guide. A 'The computer is not responding' Error Message Displays During Scanning.
    Hope to hear from you soon, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • "Firefox is already running but is not responding" error message and recent firefox update

    "Firefox is already running but is not responding" error message is continuously popping up after the recent firefox update. I have nearly exhausted every possible solution to the problem as seen from the support page for this error message. I know someone who has the same issue on their computer and it also started right after the recent big update. Does the update have anything to do with this reoccurring issue? Is anyone else having this problem? Any other ideas on how to fix it? It would be great to get some help.

    From what I have been reading from other posts on this forum, the
    issue may be caused by the clear history settings.
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Privacy'''.
    The button next to '''History''', select '''Use Custom Settings'''.
    At the bottom of the page, turn on '''Clear History When Firefox Closes.'''
    At the far right, press the '''Settings''' button. Turn on ONLY '''Cache''' and
    '''Form And Search History''' leaving the others off.
    This is not a cure but will make it easier if Firefox locks up.
    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s''' {web link}

  • "Not Found" Error Message Problem

    Hi All!
    I have a really weird issue happening that I have not found a post for in the boards, although there are some similar ones. I have a video project that I had been working on about a month ago and finished except for credits (I had no problems while working on it then). I finally just got the list of names to use for the credits, so I went to open the project to add the credits and I got a "Not Found" and "Out Of Memory" Message. I have 134.6 Gigs open on the Raid I save everything to, so I know I'm not actually out of memory. So I changed the settings to 80% Application and 50% Stills b/c I have around 10 jpegs I was using for titles in it. That seemed to help at least get the sequence opened. I then had media offline messages for those titles, eventhough they are in the browser and defined as online, so I just reconnected each one individually anyway. That helped with that problem. However, I FCP won't render the transitions around the titles. I deleted the transitions and titles and tried to re-render the video clips that were involved in the transitions with the titles. It won't render those. When I try to view the clips in the viewer, I get the "Not Found" message again. I reconnected a couple of the video clips individually, but I still get the message when I try to view them in the Viewer. The clips in the sequence are there and play in the canvas but not in the viewer and I get the "Not Found" message. I have it set to view the image without wireframes, so that's not the problem. The source videos are read as online in the browser and are in the same place as they were when I originally started the project, so that's not the problem. I've tried different variations on the memory usage. I've tried copying and pasting to a new sequence but get the same problem. Does anyone know why all of a sudden I can't view any of my source video and the clips I used in my sequence in the viewer and why it would give me the "Not Found" error message?
    Some Specs that might be helpful:
    FCP HD 4.5
    Dual 2 GHz PowerPC G5
    2.5 Gigs DDR SDRAM
    Raid 1 with 134.6 Gigs Available Space
    SD NTSC DV Footage - MPG files I transfered originally from the client's portable hard drive
    A Few JPGs of Photoshop Titles
    I'm sorry this is insanely long, but I wanted to provide as much detail as I could.
    Emily

    They were originally on a PC. That quite possibly could be it.
    I just checked all the titles again and they are all RGB.
    Our Raid ocassionally has problems, so I'm thinking it might have something to do with that.
    I'm going to try on Monday to just re-import the videos I need into the project and see how that goes. If anyone has any suggestions, I'll take a look on Monday and see what happens.
    I was just hoping that someone might have had this problem and knew what to do.
    Thanks for your help!

  • AFP fails to connect to a PC volume and gives a "version of the server you are trying to connect to is not supported" error message.

    AFP fails to connect to a PC volume and gives a "version of the server you are trying to connect to is not supported" error message.
    Has anybody come across this error and found a fool-proof solution? I have found some stuff on the web but nothing seems to work. In particular this one on the Apple Help doesn't:
      http://support.apple.com/kb/HT4700
    I have a W2K3  server where the volume is. It's a new Mac with OSX 10.8 and is connecting with AFP (I don’t want to move to SMB yet). There are older Macs with lower OS and all of them work fine. I have checked all the basic stuff and it is set-up correctly (hosts file on Mac, network, etc.).
    Any help greatly appreciated,
    Cheers,
    Ian

    This may work for you:
    http://www.zdnet.com/mavericks-smb2-problem-and-fixes-7000022519/

  • Package does not exist error-message

    When I try to compile a java servlet with the following piece of code I get a compilation error referring to the import statement.
    I have just included the initial import statements. A large number of errors follow, as a result of this 'package does not exist error-message'.
    Has anyone encountered this or any ideas?
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.* ;
    import java.io.* ;
    import java.sql.* ;
    import com.ericsson.snf.mps.mppapi.mtlr.*;
    The error messages come from the 'import com.ericsson.snf.........' statement.
    I am trying to integrate ericsson software, into my application.
    Thanks,
    java-mobile-user

    That's probably because you are trying to integrate j2me suff with j2se/ee. That won't work without los of extra work..

  • "should be declared abstract" error message Help !

    Dear People,
    I have two error messages in my program
    "should be declared abstract"
    "getAudioClip() not found "
    Your advice is appreciated
    Norman
    "MyMusicApplet_1.java": Error #: 454 : class stan_my_music_applet_1.MyMusicApplet_1 should be declared abstract; it does not define method getStreamKeys() in interface java.applet.AppletContext at line 9
    "MyMusicApplet_1.java": Error #: 300 : method getAudioClip(java.lang.String) not found in class stan_my_music_applet_1.MyMusicApplet_1
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.applet.*;
    import java.awt.event.*;
    public class MyMusicApplet_1 extends JApplet implements ActionListener, AppletContext
         //AppletContext myAppletContext =   new AppletContext();
         //Iterator i =   myAppletContext.getStreamKeys();
         JButton myJButton;
         AudioClip acSound_1 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk");
         AudioClip acSound_2 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_3 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_4 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_5 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_6 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_7 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_8 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         AudioClip acSound_9 = getAudioClip("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk   ");
         JButton myJButtonSound1;
         JButton myJButtonSound2;
         JButton myJButtonSound3;
         JButton myJButtonSound4;
         JButton myJButtonSound5;
         JButton myJButtonSound6;
         JButton myJButtonSound7;
         JButton myJButtonSound8;
         JButton myJButtonSound9;
      public void init()
           Container myContentPane = getContentPane();
           myContentPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
            Dimension buttonSize = new Dimension(190,100);
           Font myFont = new Font("Arial", Font.BOLD,14);
           Border myEdge = BorderFactory.createRaisedBevelBorder();
                    //create 1st button's object
                     myJButtonSound1 = new JButton("sound #1");
                    myJButtonSound1.addActionListener(this);
                   //set the button's border and size, font background and foreground
                   myJButtonSound1.setBorder(myEdge);
                   myJButtonSound1.setPreferredSize(buttonSize);
                   myJButtonSound1.setFont(myFont);
                   myJButtonSound1.setBackground(Color.orange);
                   myJButtonSound1.setForeground(Color.black);
                    //create 2nd button's object
                     myJButtonSound2 = new JButton("sound #2");
                    myJButtonSound2.addActionListener(this);
                   //set the button's border and size, font, background and foreground
                   myJButtonSound2.setBorder(myEdge);
                   myJButtonSound2.setPreferredSize(buttonSize);
                   myJButtonSound2.setFont(myFont);
                   myJButtonSound2.setBackground(Color.blue);
                   myJButtonSound2.setForeground(Color.black);
                    //create 3rd button's object
                     myJButtonSound3 = new JButton("sound #3");
                    myJButtonSound1.addActionListener(this);
                   //set the button's border and size, font, background and foreground
                   myJButtonSound3.setBorder(myEdge);
                   myJButtonSound3.setPreferredSize(buttonSize);
                   myJButtonSound3.setFont(myFont);
                   myJButtonSound3.setBackground(Color.cyan);
                   myJButtonSound3.setForeground(Color.black);
                    //create 4th button's object
                     myJButtonSound4 = new JButton("sound #4");
                    myJButtonSound4.addActionListener(this);
                   //set the button's border and size, font background and foreground
                   myJButtonSound4.setBorder(myEdge);
                   myJButtonSound4.setPreferredSize(buttonSize);
                   myJButtonSound4.setFont(myFont);
                   myJButtonSound4.setBackground(Color.pink);
                   myJButtonSound4.setForeground(Color.black);
                   //create 5th button's object
                   myJButtonSound5 = new JButton("sound #5");
                  myJButtonSound5.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound5.setBorder(myEdge);
                 myJButtonSound5.setPreferredSize(buttonSize);
                 myJButtonSound5.setFont(myFont);
                 myJButtonSound5.setBackground(Color.red);
                 myJButtonSound5.setForeground(Color.black);
                  //create 6th button's object
                   myJButtonSound6 = new JButton("sound #6");
                  myJButtonSound6.addActionListener(this);
                 //set the button's border and size, font, background and foreground
                 myJButtonSound6.setBorder(myEdge);
                 myJButtonSound6.setPreferredSize(buttonSize);
                 myJButtonSound6.setFont(myFont);
                 myJButtonSound6.setBackground(Color.pink);
                 myJButtonSound6.setForeground(Color.black);
                  //create 7th button's object
                   myJButtonSound7 = new JButton("Choice #7");
                  myJButtonSound7.addActionListener(this);
                 //set the button's border and size, font, background and foreground
                 myJButtonSound7.setBorder(myEdge);
                 myJButtonSound7.setPreferredSize(buttonSize);
                 myJButtonSound7.setFont(myFont);
                 myJButtonSound7.setBackground(Color.cyan);
                 myJButtonSound7.setForeground(Color.black);
                  //create 8th button's object
                   myJButtonSound8 = new JButton("Choice #8");
                  myJButtonSound8.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound8.setBorder(myEdge);
                 myJButtonSound8.setPreferredSize(buttonSize);
                 myJButtonSound8.setFont(myFont);
                 myJButtonSound8.setBackground(Color.yellow);
                 myJButtonSound8.setForeground(Color.black);
                  //create 9th button's object
                   myJButtonSound9 = new JButton("Choice #9");
                  myJButtonSound9.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound9.setBorder(myEdge);
                 myJButtonSound9.setPreferredSize(buttonSize);
                 myJButtonSound9.setFont(myFont);
                 myJButtonSound9.setBackground(Color.blue);
                 myJButtonSound9.setForeground(Color.black);
                   //add the buttons to the content pane
                   myContentPane.add(myJButtonSound1);
                   myContentPane.add(myJButtonSound2);
                   myContentPane.add(myJButtonSound3);
                   myContentPane.add(myJButtonSound4);
                   myContentPane.add(myJButtonSound5);
                   myContentPane.add(myJButtonSound6);
                   myContentPane.add(myJButtonSound7);
                   myContentPane.add(myJButtonSound8);
                   myContentPane.add(myJButtonSound9);
          public void actionPerformed(ActionEvent e)
             myJButton = (JButton)e.getSource();
            if(myJButton == myJButtonSound1)
              acSound_1.play();
            if(myJButton == myJButtonSound2)
              acSound_2.play();
            if(myJButton == myJButtonSound3)
              acSound_3.play();
            if(myJButton == myJButtonSound4)
              acSound_4.play();
            if(myJButton == myJButtonSound5)
              acSound_5.play();
             if(myJButton == myJButtonSound6)
               acSound_6.play();
                       if(myJButton == myJButtonSound7)
                         acSound_7.play();
                       if(myJButton == myJButtonSound8)
                         acSound_8.play();
                        if(myJButton == myJButtonSound9)
                          acSound_9.play();
      }

    The "should be declared abstract" error message means that you have either extended an abstract class with abstract methods that you have not implemented, or you have implemented an interface and not implemented all of its methods. Non abstract classes have to implement all methods that their base classes or interfaces declare.
    The "getAudioClip() not found" error message means that the compiler could not find the method getAudioClip(). Either your class or one of its base classes has to define this method.

  • Facetime is not available error message, any suggestions?

    facetime is not available error message, any suggestions?

    Hi ftruseljr,
    Welcome to the Support Communities!
    The article below may be able to help you with this.  Click on the link to see more details and screenshots. 
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    Cheers,
    - Judy

Maybe you are looking for

  • How can you set up a new graphiccard ?/SOLARIS 8 - intel architecture

    Hi... I`ve installed Sun microsystems SOLARIS 8 on my intel architecture based system. The Computer is a Toshiba satellite 2210 with a trident cyber 9525 graphiccard. During installation i wasn�t sure about the graphiccard and so i chose the standart

  • Reinstalled itunes 10 64bit on pc running Windows 7 64 bit but nothing plays now.

    itunes 10 stopped playing tracks when I clicked on them. So have just reinstalled ver10 64 bit on pc running Win 7 64bit, rebooted computer but still won't play. Have recently updated Nvidia display drivers (64bit) but wouldn't think this would affec

  • Bridge and PSCS5 slow and unstable after update

    I allowed my system to install the updates for Bridge, ACR and PS CS5.  Since then everything is unstable. I open bridge and click an image.  I'm first told Bridge is not responding.  After a couple minutes it will respond and open ACR.  If I click "

  • Disabling GeForce 4 IGP

    I am about to add my GeForce 4 ti4200 to this unit. I presently have the GeForce 4 IGP. Will it be OK to leave the drivers etc. for the IGP and just install the card into the AGP slot? (Adding Detonator drivers as well) I was wondering if I should pu

  • Adding button to a groupbox

    I need to be able to dynamically add buttons to a groupbox. When I use the DockStyle.Top; it puts them  in the right place but in the wrong order. Is there another way?? private void add_button(string title, string order, string group) Button button