pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ChesStrategy <ChesStrat...@gmail.com>
Subject Re: Setting a minimum (enforced) size for the Display
Date Mon, 15 Nov 2010 03:30:30 GMT

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