Dear All,

I am totally green in PIVOT, sorry if the question is stupid. We decided to
replace the SWING based GUI of one of our application with a PIVOT based
GUI. 

I try to set the host frame size via the following lines:

java.awt.Frame hostFrame =
(java.awt.Frame)display.getDisplayHost().getParent();
        
hostFrame.setSize(window.getPreferredWidth(), window.getPreferredHeight());
hostFrame.setResizable(true);

But when I launch the application, the host frame size become smaller than
the BoxPane size. Basically it cuts the bottom and right part of the window.

Can you let me know what is the best method to make sure that the host frame
size is correctly set?

I appreciate your help,

Cheers,

MSafiri
-- 
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/HostFrame-Size-How-to-calculate-tp1736915p1736915.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to