Maximize window

Do I want to call a function to maximize the window when the client is minimized

What are you trying to accomplish? Preventing users from minimizing the client window? Is this a Vision client or Perspective client?

We often minimize the client, when there are some events, or receive message, maximize the window to the desktop ( vision)

This code should give you a start:


You’ll need to figure out how to capture your triggers for maximizing, get the parent JFrame of the window, and then just use this part, where window is the parent JFrame you want to maximize:

window.setExtendedState(JFrame.NORMAL)