pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: Setting a minimum (enforced) size for the Display
Date Mon, 15 Nov 2010 12:40:35 GMT
You are setting the min. size on the display host in this example - you need to set it on the
host window (returned by getHostWindow(), not getDisplayHost()). I just tried this and it
seems to work fine.

On Nov 14, 2010, at 10:30 PM, ChesStrategy wrote:

> 
> I've tried your solution and it does not seem to have any effect; Is it
> supposed to set the size of the Display (and enclosed Window) to 800x600 on
> startup()?
> 
> I have posted the code below for reference. constructContent() simply
> returns a BoxPane filled with other stuff.
> 
> Thanks,
> Dave
> 
> 
> private Window window;
> 
> public void startup(Display arg0, Map<String, String> arg1) throws Exception 
> {
> 	window = new Window();
> 
>        window.setTitle(Constants.APPTITLE);
>        window.setContent(constructContent());
>        window.setMaximized(true);
> 
> 	arg0.getDisplayHost().setMinimumSize(new Dimension(800,600));
> 		
> 	window.open(arg0);
> 		
> }
> 
> 
> -- 
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Setting-a-minimum-enforced-size-for-the-Display-tp1902028p1902622.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message