This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-31 17:45:06

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Scratch & Java -> Jasper

Screenshots from small technological experiment - implementation of Scratch block editor in Java (Netbeans platform + Widgets Visual Library) are in

http://www.kiwiki.info/mediawiki/index.php/Jasper

Current version - Jasper 001 (basic bloks, zoom, explorer, palette)

Offline

 

#2 2012-05-31 18:33:47

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch & Java -> Jasper

Wow, that's really cool! Is there any way to download it?


Posts: 20000 - Show all posts

Offline

 

#3 2012-06-01 02:39:37

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch & Java -> Jasper

Hi, me and zeroluck are making something very simalar http://sourceforge.net/projects/jblocks/


http://i.imgur.com/1QqnHxQ.png

Offline

 

#4 2012-06-01 03:31:13

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Scratch & Java -> Jasper

Hey. Can you give us (me and TRocket) the code which you use for drawing the stack-blocks? Thanks!


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#5 2012-06-01 04:31:05

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Scratch & Java -> Jasper

Woah, that's amazing! Nice job. I always found Drag 'n drop tough to implement, but you have made quite a nice implementation just by looking at it. My only question is, do you drag the blocks between windows? I see a panel with the blocks palette detached from the scripting area. Also, it would be great if you could compile applications into Java with Jasper.  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6 2012-06-01 15:16:30

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

veggieman001 wrote:

Wow, that's really cool! Is there any way to download it?

Hi, we prepare java WebStart application download in a short time ...

Offline

 

#7 2012-06-01 15:26:22

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

ZeroLuck wrote:

Hey. Can you give us (me and TRocket) the code which you use for drawing the stack-blocks? Thanks!

Blocks are created as vector graphics with standard Java 2D Graphics library and linked with widgets from Visual library (part of Netbeans platform).

Code fragment for creating of stack-block:

// basic coordinates
double bx[]={ 0, 10, 20, 30, 50, 60, 70, 80, 80, 70, 60, 50, 30, 20, 10,  0,  0 };
double by[]={10,  0,  0, 10, 10,  0,  0, 10, 40, 50, 50, 60, 60, 50, 50, 40, 10 };

...

// stack block drawing and filling - without decorations
GeneralPath filledPolygon = new GeneralPath(GeneralPath.WIND_EVEN_ODD, bx.length);
GeneralPath polyline = new GeneralPath(GeneralPath.WIND_EVEN_ODD, bx.length);
filledPolygon.moveTo(bx[0], by[0]);
polyline.moveTo(bx[0], by[0]);
for ( int index = 1; index < bx.length; index++ ) {
      filledPolygon.lineTo(bx[index], by[index]);
      polyline.lineTo(bx[index], by[index]);
}
filledPolygon.closePath();

g2.setPaint(colorBoxStandard );
g2.fill(filledPolygon);
g2.draw(polyline);

Offline

 

#8 2012-06-01 15:42:44

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

Hardmath123 wrote:

Woah, that's amazing! Nice job. I always found Drag 'n drop tough to implement, but you have made quite a nice implementation just by looking at it. My only question is, do you drag the blocks between windows? I see a panel with the blocks palette detached from the scripting area.

Drag and Drop is created with standard Data Flavour mechanism used in Java Swing.

Hardmath123 wrote:

Also, it would be great if you could compile applications into Java with Jasper.  smile

At this time is Jasper technological demo only with following test plan:
- internal data structures
- block interpreter
- user defined block scripting with jython
- building of distributed systems (more Jasper-s communicate together via RMI/Corba)
- code generator (from block to compact java code)
- etc ... ... ...  smile

Offline

 

#9 2012-06-12 17:11:51

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

Hi all,
small technological demo from stack block editor (jasper)  written in Java (using visual library and netbeans) is in

http://*/3_jFR7PL4-s

Offline

 

#10 2012-06-12 17:19:08

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Scratch & Java -> Jasper

The domain name seems to be censored. Is it an inappropriate domain name?

Offline

 

#11 2012-06-12 17:19:35

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

hmmm ... bad link (!?)

*/3_jFR7PL4-s

Offline

 

#12 2012-06-12 17:24:39

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

chanmanpartyman wrote:

The domain name seems to be censored. Is it an inappropriate domain name?

it is ( y o u t u . b e /3_jFR7PL4-s)

Offline

 

#13 2012-06-12 17:51:33

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Scratch & Java -> Jasper

I can't see any inappropriate words in the domain name. Should I post this in bugs and glitches?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#14 2012-06-12 17:57:49

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Scratch & Java -> Jasper

Look great!  big_smile


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

#15 2012-06-12 18:02:51

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch & Java -> Jasper

Type youtube.com instead of youtu.be


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#16 2012-06-12 19:23:00

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Scratch & Java -> Jasper

Offline

 

#17 2012-06-12 19:32:43

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Scratch & Java -> Jasper

jvvg wrote:

I can't see any inappropriate words in the domain name. Should I post this in bugs and glitches?

* is censored intentionally, actually.


Posts: 20000 - Show all posts

Offline

 

#18 2012-06-12 20:24:18

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Scratch & Java -> Jasper

veggieman001 wrote:

jvvg wrote:

I can't see any inappropriate words in the domain name. Should I post this in bugs and glitches?

youtu.be is censored intentionally, actually.

Offline

 

#19 2012-07-02 16:48:17

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

Hi all,

video from Jasper 0.004 (pure Java development) with new features (floating block) is available in

http: // youtu . be /VPDyd94smNo

(or)

http://www.scratch.mit.edu/ext/youtube/?v=VPDyd94smNo&feature=*

screenshot is here

https: // picasaweb . google . com/116862838346154358376/July22012?authuser=0&feat=directlink

(or)

https://picasaweb.google.com/116862838346154358376/July22012?authuser=0&feat=directlink

(I hope that links works ...)

Offline

 

#20 2012-07-02 17:17:37

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch & Java -> Jasper

qenix wrote:

Hi all,

video from Jasper 0.004 (pure Java development) with new features (floating block) is available in

http: // youtu . be /VPDyd94smNo

(or)

http://www.scratch.mit.edu/ext/youtube/?v=VPDyd94smNo&feature=*

screenshot is here

https: // picasaweb . google . com/116862838346154358376/July22012?authuser=0&feat=directlink

(or)

https://picasaweb.google.com/116862838346154358376/July22012?authuser=0&feat=directlink

(I hope that links works ...)

Nice!  big_smile


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#21 2012-07-03 04:40:13

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Scratch & Java -> Jasper

Wow that's awesome  big_smile


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#22 2012-07-03 05:40:07

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Scratch & Java -> Jasper

Cool.  big_smile


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#23 2012-08-05 17:42:59

qenix
New Scratcher
Registered: 2012-05-31
Posts: 13

Re: Scratch & Java -> Jasper

Hi all,

description of block editor (technological demo) implemented in pure Java (partially compatible with Scratch) is in

http://wiki.tntech.eu/index.php?title=Jasper_-_EN

With regards
qenix

Offline

 

#24 2012-08-07 13:56:30

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Scratch & Java -> Jasper

That is awesome...!  yikes


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#25 2012-08-07 14:06:47

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch & Java -> Jasper

Wow! Is this finished and downloadable?

Offline

 

Board footer