cheerpj-meta icon indicating copy to clipboard operation
cheerpj-meta copied to clipboard

Fullscreen mode or window resize

Open sebhaase opened this issue 6 years ago • 3 comments

I have a Java app where the window (I assume its using Swing) gets cut off at the bottom. When I increase the parameters given in cheerpjCreateDisplay(1280,760) I get more white space around the Java window inside the CheerpJ frame, but it stays cut off at the same size as before. Is the a way to tell the window to go fullsize or to have it get a resize event/trigger.

sebhaase avatar Feb 26 '20 13:02 sebhaase

You should be able to resize the window manually, and the window should also properly resize if you programmatically resize it from the Java side. Does any of this solutions work?

alexp-sssup avatar Feb 26 '20 13:02 alexp-sssup

Manual resizing does in fact help (Thanks!). I do not have access to the Java source code - I have only the jar-file. So I was hoping the CherpJ runtime API would allow me to programmatically resize the window from the Javascript side. Is that possible? (Manual resizing would be quite difficult to explain to the users!)

sebhaase avatar Feb 26 '20 14:02 sebhaase

No, at this time there is no API to achieve that. Eventually we plan to add a standard "Maximixe" control to the window bar, but we don't have a timeline for this feature right now. Please understand that we are a small company and we need to prioritize feature requests coming from our commercial users.

alexp-sssup avatar Feb 26 '20 14:02 alexp-sssup