maximize terminal/screen to full-screen

365 views
Skip to first unread message

サムエル テイェイラ サントス

unread,
Dec 8, 2017, 9:48:57 AM12/8/17
to lanterna-discuss
Hi, 

I'm new here, new in Java, new in lanterna.

I could make work the examples in netbeans, no problem until now.

But I search here in forum and in docs and I cannot find a way to full-screen the terminal/screen.

I don't want to full-screen window object, I'm really trying maximize the screen/terminal. It's possible?

Get the client resolution and pass this values to createScreen() for an example 

So when it runs, automatically start the terminal/screen on full-screen mode.

Thanks for your attention all

Cheers.

Samuel

サムエル テイェイラ サントス

unread,
Dec 12, 2017, 4:53:51 AM12/12/17
to lanterna-discuss
Hi all.  I got it done, finally. :D

I realize that I need make an inheritance from SwingTerminalFrame and after call super in one of his constructors make this call

this.setExtendedState(this.MAXIMIZED_BOTH);

Hope help others.

See ya

Martin Berglund

unread,
Dec 25, 2017, 6:51:18 AM12/25/17
to lanterna...@googlegroups.com
Hi Samuel,
Yes, this sounds like an AWT/Swing thing to try to get the native window to go full-screen. Glad it worked out!

Thanks,
Martin

--
Det här meddelandet skickas till dig eftersom du prenumererar på gruppen "lanterna-discuss" i Google Grupper.
Om du vill sluta prenumerera på den här gruppen och inte längre få någon e-post från den skickar du ett e-postmeddelande till lanterna-discuss+unsubscribe@googlegroups.com.
Fler alternativ finns på https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages