|
JAPI
Jun 9, 2013 21:35:33 GMT 1
Post by vovchik on Jun 9, 2013 21:35:33 GMT 1
Dear jrs,
No, I can read and program a bit in that language, but it not really my cup of "tea". (bad pun again). Some real java expert should do that. I usually just port java into other languages...if I have to. In any case, the more GUI APIs available, the better, and this one seems easy to use.
With kind regards, vovchik
|
|
Deleted
Deleted Member
Posts: 0
|
JAPI
Jun 10, 2013 8:27:02 GMT 1
Post by Deleted on Jun 10, 2013 8:27:02 GMT 1
Good News!The Linux binaries from the JAPI site work great with Ubuntu 12.04 LTS 32 bit. I have tested all the BaCon examples I posted without having any issues. Get it HERE. This is a OxygenBasic / Simple Window example I modified and ported to ScriptBasic JAPI. It should be a walk in the park to convert to BaCon. IMPORT japi.bas
j_start win = j_frame("Chaos Natural") can = j_canvas(win, 800, 600) j_pack(win) j_show(win)
WHILE obj <> win j_setcolorbg(can, 0, 0, 255) FOR t = 0 TO 4 STEP .01 xp = 120 * COS(t * 2) yp = 120 * SIN(t * 2) zp = a * SIN(t * 16) + 100 xs = (300 + xp * 320 \ 160) ys = (300 - yp * 320 \ 160) j_setcolor(can, 228, 228, 228) j_drawcircle(can, 120 + xs, ys, zp - 150) NEXT a += 1 IF a >= 300 THEN a = -a j_sleep(50) obj = j_getaction() WEND j_quit()
|
|
|
JAPI
Jun 10, 2013 12:28:25 GMT 1
Post by vovchik on Jun 10, 2013 12:28:25 GMT 1
Dear jrs,
Thanks. I had already tried out the Linux binaries, but noticed that neither the source nor the binaries supported Swing, unless I am doing something wrong. Did you get Swing to work with them?
With kind regards, vovchik
|
|
Deleted
Deleted Member
Posts: 0
|
JAPI
Jun 10, 2013 16:03:57 GMT 1
Post by Deleted on Jun 10, 2013 16:03:57 GMT 1
The swing version was never release and has LaF issues. Marcus is working on it. This is an AWT solution for now. I'm only using JAPI for the easy to use canvas API. Until swing & LaF works, the rest of the UI is for prototyping only with the understanding better times are ahead.
|
|