This site requires JavaScript, please enable it in your browser!
Greenfoot back
won0c
won0c wrote ...

2012/10/19

is it possible to insert web page?

won0c won0c

2012/10/19

#
is it possible to insert web page into Greenfoot scenario? I like to insert Google Map using JavaScript and HTML into my Greenfoot scenario. please give me some advice! in other words, Any ideas on inserting JavaScript into Greenfoot?
Upupzealot Upupzealot

2012/10/19

#
Greenfoot can export your Scenario into a web page. Than you can edit that web page maybe, I didn't know anything about JS. I only tried to change that page in HTML
won0c won0c

2012/10/19

#
Upupzealot! my question is about not inserting a scenario into a web page, but inserting a web page into a scenario..
Upupzealot Upupzealot

2012/10/19

#
I know, I don't understand why U insist on this. Does that make a big difference?
danpost danpost

2012/10/19

#
@Upupzealot, there is a huge difference between the two. I do not in the world know why you would ask such a thing!
Upupzealot Upupzealot

2012/10/20

#
@danpost may U R right @won0c It's alse possible for you to insert a web page into a scenario. But that woud be a lot of work. U can look into Greenfoot's souece code and U'd find out that the scenario is a base on a JPanel. Than your problem comes to how to insert a web page into a JPanle. Just search it on the internet~
SPower SPower

2012/10/20

#
@Upupzealot But that would make it impossible again to insert a normal world... @won0c I don't think it's possible unless you feel like changing Greenfoots source, as said, but with the function to still add worlds.
Upupzealot Upupzealot

2012/10/20

#
@SPower You CAN add JComponents above a World, and here is a demo about adding a nicer JButton~
SPower SPower

2012/10/20

#
Sorry, I thought you meant removing the world and then adding the needed things. And I already saw that demo :)
Upupzealot Upupzealot

2012/10/20

#
Yes, and davmac saw that also, he said the way I'm using maybe unsafe... Now I was worrying about whether I have caused some trouble here
You need to login to post a reply.