Geertjan's Blog

  • January 31, 2011

Redock Minimized Windows (Without Pin Event)

Geertjan Wielenga
Product Manager
public void requestVisible() {
Mode mode = WindowManager.getDefault().findMode("explorer");
if (mode != null) {

The above is code inside a TopComponent that, by default (i.e., via layer.xml registration) docks in "explorer" mode. With the above, when the TopComponent is minimized, it will redock in the "explorer" mode whenever the mouse hovers over the button in the left sidebar, i.e., the visualization of the minimized state of TopComponents in "explorer" mode. When the mouse hovers there, the "requestVisible" is triggered.

As a result, there is no "slided in" state at all, i.e., the TopComponent is either minimized or it is docked, it is never "slided in" from minimized state.

Join the discussion

Comments ( 1 )
  • Joseph Bricker Monday, January 31, 2011

    This is just what I was interested in. We are using custom modes so I retrieve the current mode for the top component in componentOpened:

    mode = WindowManager.getDefault().findMode(this);


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.