Hi All,
I have never produced an Applet in Jabaco, but now I need to do this ... not even from the examples that I found in the forum I could have understood how that would work... I tried as below I have written, but it does not work (the project name is 'test')...
into test.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Jabaco-Applet</title>
</head>
<body>
<APPLET ARCHIVE="test.jar" CODE="Applet1.class" WIDTH="400" HEIGHT="300">
<PARAM NAME="Compiler" VALUE="Jabaco">
<PARAM NAME="Name" VALUE="Dante">
<PARAM NAME="Surname" VALUE="Alighieri">
</APPLET>
</body>
</html>
into Module1.jsrc:
Public Applet1 As New Applet1
Public AppletViewer As New JFrame("AppletViewer")
Public Sub main(ByJava args() As String)
Dim myArgs() As String
myArgs = args
Call AppletViewer.add(Applet1)
Call Applet1.setVisible(True)
Call AppletViewer.setSize(Applet1.Width + 100, Applet1.Height + 150)
Call AppletViewer.setLocation(300, 150)
AppletViewer.Show()
AppletViewer.setDefaultCloseOperation(AppletViewer.EXIT_ON_CLOSE)
Applet1.init()
End Sub
into Applet1.jsrc:
Public Sub Applet_Initialize()
Label1.Caption = Parent.getParameter("Compiler")
Label2.Caption = Parent.getParameter("Name")
Label3.Caption = Parent.getParameter("Surname")
End Sub
... somebody can help me?
Thanks...