Cannot view the applet

This is my code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.Random;
import java.applet.*;
import java.util.*;
public class Miner extends JApplet implements ActionListener
     private JButton ClickBut [][], But1;
     private Icon icon [];
     private String names[] =
               "0.gif","1.bmp","2.bmp","3.bmp","4.bmp",
               "5.bmp","6.bmp","7.bmp","8.bmp","9.bmp",
     private JTextField input1;
     private JPanel pan_1,pan_2,pan_3;
     private int size;
     public void init()
          size = 20;
          Container cont = getContentPane();
             cont.setLayout(new FlowLayout());
          pan_1 = new JPanel(new FlowLayout());
          pan_2 = new JPanel(new GridLayout(size,size));
          pan_3 = new JPanel(new FlowLayout());
          input1 = new JTextField(6);
          input1.setText("5");
          But1 = new JButton();
          But1.setLabel("Start game");
          But1.addActionListener(this);
          pan_1.add(But1);
          pan_1.add(input1);
          icon = new ImageIcon[10];
          for(int i=0;i<icon.length;i++)
               icon[i] = new ImageIcon( names[0] );
          Dimension d = new Dimension();
          d.height = 17;
          d.width = 17;
          ClickBut = new JButton [size][size];
          for (int i=0;i<size;i++)
               for(int j=0;j<size;j++)
                    ClickBut[i][j] = new JButton();
                    ClickBut[i][j].setPreferredSize(d);
                    pan_2.add(ClickBut[i][j]);
                    ClickBut[i][j].addActionListener(this);
                    ClickBut[i][j].setIcon(icon[0]);
          } // set buttons
          cont.add(pan_1);
          cont.add(pan_2);
          cont.setBackground(Color.darkGray);
          cont.setSize(400,300);
     }// init function
     public void actionPerformed(ActionEvent e)
     }// action Listener
}when I open it in IE using Microsoft JVM it shows nothing, when I use it with JDK 1.4 plug-in, it stops in the middle of loading and says: Exception: java.security.AccessControlException: access denied(java.io.FilePermission 0,gif read). And works just fine in the AppletViewer. This is my HTML code.
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="000000">
<CENTER>
<APPLET
     code     = "Miner.class"
     width     = "400"
     height     = "300"
     >
</APPLET>
</CENTER>
</BODY>
</HTML>
What is wrong?

To amplify a little:
There is no security imposed on appleviewer, as it's an application residing in your computer and is therefore trusted.
An applet is "normally" downloaded and is therefore not trusted unless you say it is.
MS virtual machine is old and can run only the older applets - ver 1.1 I believe.

Similar Messages

  • When I save an image on my ipod touch 3rd gen then go to the photos, the library updates/rebuilds, then I cannot view the picture as it just comes up as a picture of a grey camera that says JPG.  It never used to do this, how do I fix it?

    I go to save a picture (bu holding my finger down on the image, then pressing save image, when the option comes up), and then go to the photos to view the picture, its says updating library and takes about a minute to finish loading and rebuilding/updating the library.  After it has finished updating the library I cannot view the picture I saved because it comes up as a picture of a grey camera that says JPG (I assume this is some sort of file, because if i save multiple pictures only one JPG, gery camera image shows up.) My ipod never used to do this.  Any idea on how to fix it?

    Try a manual install following directions in link below.
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD  120G Vertex 3 SSD Boot HD  

  • Cannot view the collaboration in the home page

    Hello,
    I cannot view the collaboration button in the home page for the application sharing. Can anyone help me out where to configure.
    Thanks.
    Regards,
    Murali

    hi Chintu,
    check the 'add records' beside 'transferred records',
    and have you activated data ?
    ods keyfields will determine the update.
    check
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4a/e71f39488fee0ce10000000a114084/frameset.htm
    Additional restrictions:
    -         You can create a maximum of 16 key fields (if you have more key fields, you can combine fields using a routine for a key field (concatenate).)
    -         You can create a maximum of 749 fields
    -         You can use 1962 bytes (minus 44 bytes for the change log)
    -         You cannot include key figures as key fields
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f9/45503c242b4a67e10000000a114084/frameset.htm
    hope this helps.

  • IPad-Calendar I cannot view the month March 2013

    In iPad-Calendar I cannot view the month March 2013, the calendar crashes. To view the week or the day, no problem, but the month is not working.
    iPad III, latest updates on iOS installed.

    Try removing any all-day events from the calendar for the 1st April 2013 e.g. if you are syncing the calendar from somewhere else (e.g. Outlook on a PC or iCal/Calendar on a Mac) then change it to a timed event instead of all-day - it seems that there is a problem with all day events on that date which is when the clocks change due to daylight saving.

  • Cannot View the Employee Salary Report in BI Publisher

    Hi, everyone,
    I have installed the Standalone version of bi publisher for windows (bipublisher_windows_x86_101341).
    I have logged in as administrator, I have connected to my oracle database 11g thru jdbc succesfully. i cannot view the Employee Salary report. It gives me the error
    Paramter name: dept Io exception: Invalid number format for port number.
    The sample schemas are also installed on my database.
    Could anyone guide me as i am very new to bi publisher.
    Thanks in advance....

    Hi Can you please let me know what did you do to fix this issue. I am having same issue. Thanks in advance.

  • I cannot view the full page when i open my book, how can this be fixed?

    I downloaded some ebooks and i have them as e-pub files. However when i try to open them, i cannot view the full pages. There is also no zooming options for me to be able to do that.

    This forum is for eMac computers which were built between 2002 and 2005. What do you have?
    Choose your forum from this page.
    https://discussions.apple.com/index.jspa?

  • I cannot view the converted files

    I  cannot view the converted files

    Hi hidalim31473530,
    Please see Where are my converted files?
    Regardless of whether you convert via Reader to the Acrobat.com website, your files are stored in your Acrobat.com online account. If you don't see them when you're logged in, clear the cache, and then log in to https://cloud.acrobat.com/files.
    Best,
    Sara

  • I cannot view the family sharing invitation. My wife has sent it multiple times Via email and text yet I haven't had a notification, but when I attempt to send to her she receives the notification. Help please?

    I cannot view the family sharing invitation. My wife has sent it multiple times Via email and text yet I haven't had a notification, but when I attempt to send to her she receives the notification. Help please?

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

  • Cannot load the applet

    Hello.
    I am trying to use the j2re-1_4_1-win.exe, but it will not load all the way up. A new window will open, but the graphics do not load entirely, including the text fields, rendering the applet useless. I had my pc debugged, tried installing and uninstalling java ad nauseum, but still cannot run the applet. The progress bar will show that the applet is Done loading, but I never get to use it. I have tried using the applet on other machines and succeeded. Any advice? Anyone?

    Determine what the actual error is. The Java Console will have this. In IE, use the Tools menu.

  • Cannot view the names under the Main Navigator

    Hello,
    In the Main Navigator we have different type of segments. Under that for each and every segment we have different attributes assigned. For example the segments Food, Chemistry and Metal Processing. And for these we have different attributes assigned Main Industry Food and Main Industry Manufacturing Industry and Application Manufacturing Industry. But I cannot see the names under Manin Industry Manufacturing Industry where as I can see all the names under diffrent attributes. Can anyone help me how to view the names under Main Industry Manufacturing Industry.
    Thnx in advance
    Cheers
    Murali

    Hello Karsten,
    This is Knowledge Management. In the R&D Globe under MainNavigator I get this problem. I have set all the properties under content Management. I cannot view the Allowed Values(csv) under the MainIndustryManufacturingIndustry. Please help me.
    Thnx.
    Cheers,
    Murali

  • Why we cannot view the move orders which are created by the other user?

    Hi,
    Can any one explain me the below point.
    Why we cannot view the move orders which are created by the other user.
    Ex: From ABC user I have created a Move Order: 123456 in M1 Org If I login to the other user BCD I cannot view the same move order in the same ORG i..e M1 ORG.
    But we can perform the transact move orders for move orders which is created by the other user.
    What could be the reason? Why the system is restricting this? Is this the standard functionality of oracle?
    Can any one explain?
    Regards,
    Kv.

    This is due to a security function which allows to see the move orders created by the user only.
    Please refer to the meta link document ID 280131.1 for detailed description.
    I have tried these steps in one of my test instances long back and was able to see move orders created by other users.
    Thanks
    Karthik.

  • I cannot view the music I have on my Ipod in Itunes

    I have bought a second hand Ipod touch and there is still a lot of music on it but I cannot make any changes to it in Itunes.. I have read other discussions about this but the tips there do not help. I cannot view the music at all altough the system recognizes that the songs exist..

    Go to Settings>General>Reset>Erase all Setting and Content. The media on the iPod does not transfer with the iPod hardware. The owner of the media does not have a licence to transfer the media to you.
    Then sync your own media tot he iPod.

  • Can't view the applet in the browser

    I have created an applet form using JDeveloper 3.1 to connect to the Oracle8i Rel2. However the following error appear during the connection:
    cannot instantiate class:oracle.jbo.common.jboInitialContextFactory
    Please assist.

    Applet Deployment for JDev 3.1
    Deployment issues for client and server:
    1. Make sure you have the JDK 1.2 plugin installed on the client.
    2. If your webserver and database are not on the same machine, you will have to configure your applet differently, or install the Net8 Connection Manager. See the Oracle JDBC Developer's Guide for more information (exact location of applet info depends on which version of the DB).
    Creating your Applet within JDeveloper:
    1. Create a new workspace.
    2. Create a new Business Components project. You will define your data model and business logic in this project. This is effectively your middle tier, but can be deployed to any tier you choose. In this project you will use the Business Components wizard to create:
    a. entity objects for each of the tables/views you want to develop against
    b. view objects (and optionally view links, associations) for each of the entity objects or combination of entity objects
    c. application module(s) to represent your data model(s)
    3. Save and build your business components project.
    4. Create a new empty project to contain your applet code.
    5. Launch the Infobus DataForm wizard to create your DAC applet. Choose the app module you created in step 2 as a data source. (Alternately, you can create the applet from scratch using the controls and binding your sessioninfo object to your app module).
    Deployment Steps within JDeveloper:
    1. Deploy your business components project.
    a. decide how you will deploy your app module (local, visibroker, etc.)
    b. if you decide to deploy in local mode, use the Deployment Profile Wizard and choose 'Simple Archive', including all of the business components project's XML and .JAVA files in the archive.
    c. if you will deploy to visibroker, see the online help for deploying your business components, and see the Release Notes for additional changes you need to make to your applet project.
    2. (if deploying BC4J project in local mode) Create a library using the archive you generated in Step 1. Add this library to your applet project from the Project Properties Libraries tab.
    3. Clear out a directory on your local machine where the deployment wizard can copy everything you need to deploy.
    4. Deploy your applet project.
    a. Run the JDeveloper Deployment Profile Wizard and choose the Web Application to Web Server option on Page 1.
    b. On page 2, select all of the .class files in your project that make up the applet.
    c. Select all the libraries listed and shuttle them to the selected list. The contents of these libraries will automatically be added to your applet's HTML file during deployment
    d. Give the .jar file a name, and run the deployment to generate that jar file.
    e. select the location of the 'clean' directory you created in step 3.
    Deploying to your WebServer:
    1. Copy everything that the deployment process placed in your 'clean' directory to your WebServer.
    If you deployed your BC4J project locally, you will need to deploy the archive file containing your business components to the webserver along with all of the other archives.
    2. If you want to put the dependency archives in a different location from the applet's HTML file under the webserver root, then you need to set the CODEBASE tag in the HTML file to the (relative) location of the archives.
    Troubleshooting:
    1. Try both Netscape and IE. Different Browsers sometimes give different errors and one might be more helpful/indicative of the problem's source.
    2. Use the Java Console to get a more detailed stack trace. For Netscape, choose Communicator->Tools->Java Console.
    References w/in Oracle -
    JDBC Developer's Guide
    Net8 Admin Guide
    References outside Oracle -
    Borland JBuilder doc: http://www.borland.com/techpubs/jbuilder/jbuilder3-s/pg/applets.html
    JavaSoft Plugin Download: http://java.sun.com/products/plugin/
    null

  • Adobe Reader 9.2- makes documents black- cannot view the PDF's content

    Hi all
    Hoping someone else has seen this very wierd issue.
    I have a Terminal Server running Server 2003 SP1. (inherited)
    The End Users were experiencing issues with Reader not printing out correctly. They were previously using Reader v7.0.
    I downloaded the latest version v9.2 off the Adobe website and it installed correctly.
    The v9.2 installation has solved all the previous printing issues but has now created a new problem.
    It is not every time but very regularly, if the users are opening PDF's on the Terminal Server, the content is blacked out and they cannot see the text.
    It is like someone has taken a black marker and removed the text- SEE ATTACHED screenshots (it's like they do for Top Secret documents LOL)
    I have checked that Reader has no updates available, I called Technical Support and they don't support Reader over the phone and directed me here.
    I am going to re-install using the .exe off the FTP tonight but not hopeful that this will solve this problem.
    Thanks in advance.

    Hi,
    I am successfully able to view PDF files on my Vista OS, without any black spots or any other obfuscating marks.
    You should try to uninstall and then reinstall your Reader 9.2 from http://get.adobe.com/reader/.
    If the problem persists, then you need to check any other installed software on your system, that's causing you problems because Adobe Reader's is an application to view PDF files, it does not creates any.

  • Cannot view the HTML preview

    When I try to view the HTML preview after creating the presentation it is giving the following error:
    Cannot Preview BPM Object Presentation.The BPM Object has errors that need to be resolved.
    thanks,
    Regards,
    Archana

    Hi,
    I tried that way but it couldn't work.
    It is giving the following error
    Cannot Preview BPM Object Presentation.The BPM Object has errors that need to be resolved.
    Illegal character in path at index 12: file:/C:/New Folder/cd-1/New Folder/webapps/workspace/
    java.net.URISyntaxException: Illegal character in path at index 12: file:/C:/New Folder/cd-1/New Folder/webapps/workspace/
         at java.net.URI$Parser.fail(Unknown Source)
         at java.net.URI$Parser.checkChars(Unknown Source)
         at java.net.URI$Parser.parseHierarchical(Unknown Source)
         at java.net.URI$Parser.parse(Unknown Source)
         at java.net.URI.<init>(Unknown Source)
         at java.net.URL.toURI(Unknown Source)
         at fuego.designer.formdesigner.actions.HtmlPreviewAction.performShowHTMLPreview(HtmlPreviewAction.java:124)
         at fuego.designer.formdesigner.actions.HtmlPreviewAction.runAction(HtmlPreviewAction.java:83)
         at fuego.designer.formdesigner.actions.FormDesignerAction.actionPerformed(FormDesignerAction.java:43)
         at fuego.ui.peer.swt.SwtToolBarItem$AdapterListener.executeAction(SwtToolBarItem.java:251)
         at fuego.ui.peer.swt.SwtToolBarItem$AdapterListener.handleEvent(SwtToolBarItem.java:239)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
         at org.eclipse.core.launcher.Main.run(Main.java:977)
         at org.eclipse.core.launcher.Main.main(Main.java:952)
    Regards,
    Archana

Maybe you are looking for