posted 23 years ago
Hi All,
I have tried to find a solution to the focus problem , but none of them seem to match my criteria.
I have 2 Jframes ,FrameA is the enquiry screen , which calls FrameB. Once FrameB is visible it should have the focus and I don't wan't FrameA to take focus , even if the mouse is clicked on it , but it should be visible, and a beep sound should come. Only when FrameB is closed FrameA should get the focus.
Now here is what I have already done,
1. requestFocus()on FrameB,
2. FocusListener and focusLost() method has requestFocus() again.
3. When calling FrameB from FrameA , on FrameA I added FrameB.requestFocus().
But none of them seem to work. Whenever I click on FrameA , it becomes active.
Can anyone give me any suggestions.
Thanx mates.