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

2012/3/25

Jar file World size issue

danpost danpost

2012/3/25

#
I have found that when uploading a scenario on the Greenfoot site that the size of the world window will be the size of the world window of the scenario at the time you unload it. In other words, if the scenario has several worlds of various sizes, and it is uploaded with a less than maximum size currently showing, horizontal and vertical scroll-bars will end up aside the world window on the Greenfoot site when the world is larger than it was when uploaded. Obviously, I can get around that problem by uploading while the maximum sized world window is showing in the scenario. However, when exported to a jar file, this does not help. The jar will open up with whatever size the first window happens to be, and scroll-bars will appear when the world becomes larger. How can I avoid this from happening; that is, have the jar file open with a window that is the maximum size within the scenario? Just to clarify, I guess I am referencing the frame that the window is in, not the window itself.
davmac davmac

2012/3/27

#
There's no simple way around that I'm afraid - it's best just to make sure your worlds are the same size.
danpost danpost

2012/3/27

#
@davmac, I found a way :+) but I did find something peculiar. I will upload a sample scenario with pertinent code to show you.
danpost danpost

2012/3/27

#
NVM, I was the peculiar thing. I just figured something out.
You need to login to post a reply.