-
Bug
-
Resolution: Fixed
-
P3
-
1.3.1
-
None
-
beta2
-
x86
-
linux_2.4
-
Not verified
JInternalFrame is not selected by right mouse click when another JInternalFrame was selected programmatically before. I created simple MDI application to reproduce this behaviour.
Description: Application opens two JInternalFrames with embedded JEditorPane and JScrollPane. If you select first frame so that you can write into it and then
press F9. It will call setSelected(true) on second frame. If mouse cursor is
still on first frame and is NOT moved, just press right mouse button. First internal frame is NOT selected (no frameActivated()). Second click works fine
or if you move with mouse before even first mouse click works fine. Also switching between frames by right mouse clicks works fine obviosuly because you move mouse between frames.
Steps to reproduce:
1.Start application. Two JInternalFrames with embedded JEditorPanes are opened.
2.Select first frame (frame is blue) and JEditorPane in it that you can write inside.
3.Select second frame so that it is selected and you can write inside.
4.Select again first frame you can write inside.
5.Leave mouse cursor inside first frame and press F9 it will select second frame (by call of setSelected() in code) you can write inside second frame,
mouse cursor stays inside first frame, do not move it.
6.Press right mouse button in first frame. First frame is NOT selected.
Please evaluate if it is incorrect behaviour of Swing or is it wrong use of
setSelected() or did I miss something?
Description: Application opens two JInternalFrames with embedded JEditorPane and JScrollPane. If you select first frame so that you can write into it and then
press F9. It will call setSelected(true) on second frame. If mouse cursor is
still on first frame and is NOT moved, just press right mouse button. First internal frame is NOT selected (no frameActivated()). Second click works fine
or if you move with mouse before even first mouse click works fine. Also switching between frames by right mouse clicks works fine obviosuly because you move mouse between frames.
Steps to reproduce:
1.Start application. Two JInternalFrames with embedded JEditorPanes are opened.
2.Select first frame (frame is blue) and JEditorPane in it that you can write inside.
3.Select second frame so that it is selected and you can write inside.
4.Select again first frame you can write inside.
5.Leave mouse cursor inside first frame and press F9 it will select second frame (by call of setSelected() in code) you can write inside second frame,
mouse cursor stays inside first frame, do not move it.
6.Press right mouse button in first frame. First frame is NOT selected.
Please evaluate if it is incorrect behaviour of Swing or is it wrong use of
setSelected() or did I miss something?