Beginner
Date of registration: Aug 4th 2011
Location: The Netherlands
Occupation: Old Fasion Programmer
Hobbies: Play Music with my Bass
This post has been edited 2 times, last edit by "swissmade" (Sep 7th 2011, 1:33pm)
Currently I am again on Linux, so currently I can only help you in Java. But if you want, I can translate it later to Jabaco.Hi all,
Can antibody help with this to translate to Jabaco.
Sounds right, but there don't exists a setParameters()-method.Quoted
I think I have to use something like setParameters
Quoted
<applet code="com.somecode" archive="test.jar" width="320" height="240">
<param name="url" value="URL-IP/>
<param name="profile" value="Test"/>
<param name="accessories" value="ZoomIn,ZoomOut,Pan,Home"/>
<applet/>
Jabaco Source |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import javax.swing.*; public class StartIt extends JFrame { public StartIt() { super("Show Applet in a Window"); mySomecode c = new mySomecode(); JPanel p = new JPanel(); p.setLayout(null); c.setBounds(50,50,320,240); // placing the applet with its size 320x240 in the window at the position 50,50 c.init(); c.start(); p.add(c); add(p); } public static void main(String[] args) { StartIt f = new StartIt(); f.setSize(500,400); f.setVisible(true); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public class mySomecode extends com.somecode { public String getParameter(String name) { if (name.equals("url")) { return "URL-IP"; } else if (name.equals("profile")) { return ("Test"); } else if (name.equals("accessories")) { return ("ZoomIn,ZoomOut,Pan,Home"); } return ""; } } } |
Beginner
Date of registration: Aug 4th 2011
Location: The Netherlands
Occupation: Old Fasion Programmer
Hobbies: Play Music with my Bass
Beginner
Date of registration: Aug 4th 2011
Location: The Netherlands
Occupation: Old Fasion Programmer
Hobbies: Play Music with my Bass
Not happy to say that I don't get this working.HI theuserbl,
The Source looks great many thanks for this.
But now the translation to Jabaco.
I will try even I don't really understand the structure of Java. I never can remember the functions there so many.
Many thanks for help ,
Swissmade
Not happy to say that I don't get this working.
Beginner
Date of registration: Aug 4th 2011
Location: The Netherlands
Occupation: Old Fasion Programmer
Hobbies: Play Music with my Bass
Very Nice Clock is working.Not happy to say that I don't get this working.
Ok, here the easy way:
1. Download AppletInJabaco.zip
This program integrates the clock example of the Java JDK. The example is in the zip-file, too.
2. Load "AppletInJabaco.jba" in Jabaco.
3. press "F1" and adding the directory in which Clock.class can be found.
4. Start the Jabaco program
Now the Clock-Applet should be running in an Jabaco-Form
5. Press again "F1, deleting the directory which "Clock.class" have and adding your Jar test.jar.
6. Modifiing Class1 in the Jabaco-IDE.
7. Now run the Program again.
If there comes an Exception as written text in the Form, then it is really a problem, because then it can be possible, that your Applet ask where to find the html-file...
Greatings
theuserbl
This post has been edited 2 times, last edit by "swissmade" (Aug 13th 2011, 4:52pm)
Beginner
Date of registration: Aug 4th 2011
Location: The Netherlands
Occupation: Old Fasion Programmer
Hobbies: Play Music with my Bass
Have done like you told.Very Nice Clock is working.Not happy to say that I don't get this working.
Ok, here the easy way:
1. Download AppletInJabaco.zip
This program integrates the clock example of the Java JDK. The example is in the zip-file, too.
2. Load "AppletInJabaco.jba" in Jabaco.
3. press "F1" and adding the directory in which Clock.class can be found.
4. Start the Jabaco program
Now the Clock-Applet should be running in an Jabaco-Form
5. Press again "F1, deleting the directory which "Clock.class" have and adding your Jar test.jar.
6. Modifiing Class1 in the Jabaco-IDE.
7. Now run the Program again.
If there comes an Exception as written text in the Form, then it is really a problem, because then it can be possible, that your Applet ask where to find the html-file...
Greatings
theuserbl
I try to get the rest.
The Applet is Cambozola for IP-Cam Mjpeg stream so we have no text I hope.
This is a jar file where all the classes are in.
Keep you inform.
Many thanks again.
Beginner
Date of registration: Aug 4th 2011
Location: The Netherlands
Occupation: Old Fasion Programmer
Hobbies: Play Music with my Bass
I have a problem with getDocumentBase.Maybe still some ideas here.
This post has been edited 1 times, last edit by "swissmade" (Aug 28th 2011, 8:37am)