|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#21 | |
|
Senior Member
Iscritto dal: Dec 1999
Città: Torino
Messaggi: 100
|
Quote:
Provo immediatamente ! Nel mentre.... GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE GRAZIE |
|
|
|
|
|
|
#22 |
|
Senior Member
Iscritto dal: Dec 1999
Città: Torino
Messaggi: 100
|
Dunque ho creato Principale.java (e poi il .class) cosi':
import javax.swing.JApplet; import javax.swing.JPanel ; import javax.swing.JFrame ; import java.awt.Graphics ; import zodiaco.* ; public class Principale extends javax.swing.JApplet { public void init() { JFrame frame = new JFrame("Graphic output"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(800, 600); frame.getContentPane().add(new FinestraZodia()); frame.setVisible(true); } } Ora pero' il browser (ovviamente l'html e' stato modificato per indicare il file Principale.class nel tag APPLET) mi dice questo: java.security.accesscontrolexception: accessdenied (nella barra di stato in basso) e ovviamente non visualizza nulla.... Aiuto aiuto aiuto.... mi sta venendo super panico |
|
|
|
|
|
#23 |
|
Senior Member
Iscritto dal: Oct 2002
Città: Roma
Messaggi: 1502
|
ma se hai un'apllet penso che non dovresti usare il jframe per l'interfaccia, ma l'applet stessa.
inoltre mi pare che le applet non possano accedere al file system, probabilmente devi abilitare ciò per non avere problemi di sicurezza
__________________
Sun Certified Java Programmer EUCIP Core Level Certified European Certification of Informatics Professionals |
|
|
|
|
|
#24 |
|
Senior Member
Iscritto dal: Oct 2002
Città: Roma
Messaggi: 1502
|
http://java.sun.com/docs/books/tutor...let/index.html
http://java.sun.com/docs/books/tutor...ts/applet.html
__________________
Sun Certified Java Programmer EUCIP Core Level Certified European Certification of Informatics Professionals |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 05:38.



















