382 if (!isCreated()) {
383 XCreateWindowParams params = getDelayedParams();
384 params.remove(DELAYED);
385 params.add(OVERRIDE_REDIRECT, Boolean.TRUE);
386 params.add(XWindow.TARGET, target);
387 init(params);
388 }
389 return true;
390 }
391
392 /**
393 * Init window if it's not inited yet
394 * and show it at specified coordinates
395 * @param bounds bounding rectangle of window
396 * in global coordinates
397 */
398 void show(Rectangle bounds) {
399 if (!isCreated()) {
400 return;
401 }
402 if (log.isLoggable(PlatformLogger.FINER)) {
403 log.finer("showing menu window + " + getWindow() + " at " + bounds);
404 }
405 XToolkit.awtLock();
406 try {
407 reshape(bounds.x, bounds.y, bounds.width, bounds.height);
408 xSetVisible(true);
409 //Fixed 6267182: PIT: Menu is not visible after
410 //showing and disposing a file dialog, XToolkit
411 toFront();
412 selectItem(getFirstSelectableItem(), false);
413 } finally {
414 XToolkit.awtUnlock();
415 }
416 }
417
418 /**
419 * Hides menu window
420 */
421 void hide() {
422 selectItem(null, false);
|
382 if (!isCreated()) {
383 XCreateWindowParams params = getDelayedParams();
384 params.remove(DELAYED);
385 params.add(OVERRIDE_REDIRECT, Boolean.TRUE);
386 params.add(XWindow.TARGET, target);
387 init(params);
388 }
389 return true;
390 }
391
392 /**
393 * Init window if it's not inited yet
394 * and show it at specified coordinates
395 * @param bounds bounding rectangle of window
396 * in global coordinates
397 */
398 void show(Rectangle bounds) {
399 if (!isCreated()) {
400 return;
401 }
402 if (log.isLoggable(PlatformLogger.Level.FINER)) {
403 log.finer("showing menu window + " + getWindow() + " at " + bounds);
404 }
405 XToolkit.awtLock();
406 try {
407 reshape(bounds.x, bounds.y, bounds.width, bounds.height);
408 xSetVisible(true);
409 //Fixed 6267182: PIT: Menu is not visible after
410 //showing and disposing a file dialog, XToolkit
411 toFront();
412 selectItem(getFirstSelectableItem(), false);
413 } finally {
414 XToolkit.awtUnlock();
415 }
416 }
417
418 /**
419 * Hides menu window
420 */
421 void hide() {
422 selectItem(null, false);
|