JidePopup is not returning focus back to owner

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

JidePopup is not returning focus back to owner

Postby vhusainov » Tue Oct 14, 2008 12:59 am

I've got problem with jide-oss 2.2.12. After user pressed ESCAPE, popup should disappear and send focus to owner. And this the code of listener:
Code: Select all
_escapeActionListener = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
        hidePopupImmediately(true);
        Component owner = getActualOwner();
        if (owner != null) {
            owner.requestFocus();
        }
    }
};

But method hidePopupImmediately cleans _owner and _actualOwner. And focus is not sent back to owner.
vhusainov
 
Posts: 2
Joined: Tue Oct 14, 2008 12:30 am

Re: JidePopup is not returning focus back to owner

Postby JIDE Support » Tue Oct 14, 2008 8:51 am

I see. I will move the getActualOwner before the hidePopupImmedidately.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: JidePopup is not returning focus back to owner

Postby vhusainov » Tue Oct 14, 2008 11:15 am

Actually, it seems like the same thing happens with mouse event. Owner is not getting focus.
vhusainov
 
Posts: 2
Joined: Tue Oct 14, 2008 12:30 am

Re: JidePopup is not returning focus back to owner

Postby JIDE Support » Tue Oct 14, 2008 12:45 pm

It should be fixed in 2.4.3 that was just released.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 6 guests