Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Albireo » JComboBox Focus Problem
JComboBox Focus Problem [message #575144] Tue, 26 May 2009 14:17
Dominik Kaspar is currently offline Dominik KasparFriend
Messages: 12
Registered: July 2009
Junior Member
If a JComboBox is used in a second swt shell embedded into a SwingControl
and the JComobBox is using a javax.swing.Popup$HeavyWeightWindow, this
popup window will be moved on top of the primary shell while the second
shell (including the rest of the JComboBox) will be moved in the
background. This only occures if the popup of the JComboBox will be
openend the second time.

To quick fix this problem I added following to the method
handleOpenedWindow(WindowEvent event) in the class AwtDialogListener:
...
if
(window.getClass().getName().equals("javax.swing.Popup$HeavyWeightWindow "))
{
try {
window.setAlwaysOnTop(false);
} catch (SecurityException se) {
// setAlwaysOnTop is restricted,
// the exception is ignored
}
}
...
Previous Topic:JComboBox Focus Problem
Next Topic:Restoring the active shell in SwtInputBlocker does not work properly
Goto Forum:
  


Current Time: Mon Dec 22 03:45:02 GMT 2014

Powered by FUDForum. Page generated in 0.01736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software