Java JInternalFrame focus -
i have class gamegui extends desktoppane. in have local variables custom jinternalframe windows.
for 3 windows i've made far, each of them initialized , added gamegui exact same way. each window open/closing custom keyeventdispatcher class, know added , working. however, 1 of 3 opens without focus, , after calling requestfocus(), tofront(), etc, shows isfocusowner() == false. other 2 windows work fine, appear in front, focused, etc. cause behavior? i've tried changing order in added no avail.
i've examined classes , don't see difference in way jif beingness initialized , displayed. rather not utilize workaround because have 2 functional windows already.
maybe didn't understand problem properly, can seek calling "setselected" method:
frame.setselected (true);
where frame object of jinternalframe subclass.
java focus jinternalframe
No comments:
Post a Comment