Discussion:
[Tn5250j-scripting] Java-Course example ported to java...
Patrick Bielen
2003-07-07 11:15:41 UTC
Permalink
Hi Guys,

I don't know how good users in here know the java-language, but right
now,
i'm taking the java-learning-curve to learn some more about this very
powerfull programming-language.

If you take the course on java.sun.com you'll start with the divelog
example
after you learned some more about the java-platform. As i'm already
passed
part 2 of the course and manually have ported part 1 to jython i want to

share this with you guys, so included with this mail you get the java,
and
the jython-version, so you can look at the code and understand the
difference between the two languages. Have fun with the code.

Keep in mind that in part one only the gui is been build, and that it
does
nothing yet, beside painting the frame, panels and the tabbedpane.
But indeed it is a nice way to take some experience with it.

Create a divelog dir on your hd, in windows this is C:\divelog
and create a subdir in there called images (where you place
the two images included. Place the source-files in the divelog-dir.

To run the java version, first compile it with the next command in the
divelog-dir on your hd...

javac -classpath C:\ DiveLog.java (for windows ofcourse)

after that run the program with the next command...

java -classpath C:\ divelog.DiveLog

To run the jython version cd to the divelog dir an run...

jython DiveLog.py (must have jython installed ofcourse)

Have fun and happy learning !

Best Regards,

Patrick
tn5250j
2003-07-07 11:36:07 UTC
Permalink
Patrick

You might want to pass this to the general list as well. That is a
great start. Keep it up.

Regards

Kenneth
Post by Patrick Bielen
Hi Guys,
I don't know how good users in here know the java-language, but right
now,
i'm taking the java-learning-curve to learn some more about this very
powerfull programming-language.
If you take the course on java.sun.com you'll start with the divelog
example
after you learned some more about the java-platform. As i'm already
passed
part 2 of the course and manually have ported part 1 to jython i want to
share this with you guys, so included with this mail you get the java,
and
the jython-version, so you can look at the code and understand the
difference between the two languages. Have fun with the code.
Keep in mind that in part one only the gui is been build, and that it
does
nothing yet, beside painting the frame, panels and the tabbedpane.
But indeed it is a nice way to take some experience with it.
Create a divelog dir on your hd, in windows this is C:\divelog
and create a subdir in there called images (where you place
the two images included. Place the source-files in the divelog-dir.
To run the java version, first compile it with the next command in the
divelog-dir on your hd...
javac -classpath C:\ DiveLog.java (for windows ofcourse)
after that run the program with the next command...
java -classpath C:\ divelog.DiveLog
To run the jython version cd to the divelog dir an run...
jython DiveLog.py (must have jython installed ofcourse)
Have fun and happy learning !
Best Regards,
Patrick
Loading...