Re: Setting Robocode Window Size from External Application

"mbesney" <[email protected]>
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Excellent information, thank you!

--- In [email protected], "flemmingnlarsen" <flemming.n.larsen@...> wrote:
>
> In the robocode/config directory, you will find the windows.properties file, which is automatically created the first time Robocode is run. When you resize one of the "main" windows, like the RobocodeFrame, RobocodeEditor etc. this property file will automatically be updated so Robocode will know the size of these windows the next time it is started up.
> 
> You can set this property in the windows.properties:
> 
> net.sf.robocode.ui.dialog.RobocodeFrame=x,y,width,height
> 
> E.g.:
> 
> net.sf.robocode.ui.dialog.RobocodeFrame=336,72,1155,811
> 
> I am not sure if you can set it up from another application, e.g. thru robocode.control.RobocodeEngine, but it is worth a try. :-)
> 
> Regards,
> - Flemming
> 
> 
> If you want the original values back, you select Options -> Default window size from the menu of Robocode.
> 
> --- In [email protected], "mbesney" <mbesney@> wrote:
> >
> > Hello,
> > 
> > I am running Robocode from Eclipse. No matter what the battlefield size is set to the Robocode window always comes up the same size (i.e. too small). Can anyone tell me how to control the window size externally without having to push a button or select a menu item once Robocode has launched? Is there a System property I can set? Thanks in advance for your answers...
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Robocode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.