Don't have Telegram yet? Try it now!
https://kodejava.org/how-do-i-change-jframe-state-programmatically/
How do I change JFrame state programmatically?