Quote Originariamente inviata da giannino1995 Visualizza il messaggio
Ragazzi ho risolto il problema, basta scrivere:

codice:
text = "Output to a Java window is actually quite easy. As you have seen, the AWT provides support for fonts, colors, text, and graphics. <P>  Of course, you must effectively utilize these items if you are to achieve professional results.";
Per cui il problema è questo:

codice:
text = getParameter("text");
Per farla breve Eclipse sbaglia a creare il file html e il codice html che il libro suggerisce di scrivere è sbagliato. Ho già scritto nella sezione html 5 per avere qualcosa di decente ma mi sembra di capire che non volete aiutarmi...

http://forum.html.it/forum/showthrea...readid=2899830

Quel getParameter("text") non è sbagliato... semplicemente si aspetta che nell'html tu abbia definito il parametro "text".
Lo avevi fatto? Cos'hai scritto nella tua pagina html?

L'esempio l'hai riportato tu stesso:

codice:
<title>Text Layout</title>
   <applet code="Esempio" width=200 height=200>
   <param name="text" value="Output to a Java window is actually quite easy. 
      As you have seen, the AWT provides support for
      fonts, colors, text, and graphics. <P>  Of course,
      you must effectively utilize these items
      if you are to achieve professional results.">
    <param name="fontname" value="Serif">
    <param name="fontSize" value="14">
   </applet>