我运行了,看得到呀,在appletviewer里

解决方案 »

  1.   

    ie里也能看得到,html页面
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>
    HTML Test Page
    </title>
    </head>
    <body>
    untitled1.ButtonGrid will appear below in a Java enabled browser.<br>
    <applet
      codebase = "."
      code     = "untitled1.ButtonGrid.class"
      name     = "TestApplet"
      width    = "400"
      height   = "300"
      hspace   = "0"
      vspace   = "0"
      align    = "middle"
    >
    </applet>
    </body>
    </html>
      

  2.   

    applet显示是灰的还是白的,有没有提示异常?