-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
1.4.2_05
-
generic
-
generic
We have noticed an inconsistency in the JInternalFrame. Try the
following steps with the test program :
- Run the SwingSet2 demo (with the test program)
% java -classpath ".;%JAVA_HOME%\demo\jfc\SwingSet2\swingSet2.jar"
DumpWindow SwingSet2
- Click once on the "Resizable" checkbox (in the right most JInternal
frame). You will see that 4 events are printed:
- 1st Event: MOUSE_PRESSED on JPanel
- 2nd Event: MOUSE_PRESSED on JCheckBox
- 3rd Event: MOUSE_RELEASED on JPanel
- 4th Event: MOUSE_RELEASED on JCheckBox
- Click on the "Resizable" checkbox again, you will see the following 2
events:
- 1st Event: MOUSE_PRESSED on JCheckBox
- 2nd Event: MOUSE_RELEASED on JCheckBox
The send event sequence is correct, but there are few inconsistencies in
the first scenario:
- How can you have 2 MOUSE_PRESSED and 2 MOUSE_RELEASED events in a
sequence?
- The first scenario is different from the 2nd though we click on the same
object (Resizable).
I have noticed that 1st scenario happens only when the JInternalFrame
receives focus due to the first mouse click. You can observe the similar
behavior by clicking on any JInternalFrame (e.g click on the Fish).
following steps with the test program :
- Run the SwingSet2 demo (with the test program)
% java -classpath ".;%JAVA_HOME%\demo\jfc\SwingSet2\swingSet2.jar"
DumpWindow SwingSet2
- Click once on the "Resizable" checkbox (in the right most JInternal
frame). You will see that 4 events are printed:
- 1st Event: MOUSE_PRESSED on JPanel
- 2nd Event: MOUSE_PRESSED on JCheckBox
- 3rd Event: MOUSE_RELEASED on JPanel
- 4th Event: MOUSE_RELEASED on JCheckBox
- Click on the "Resizable" checkbox again, you will see the following 2
events:
- 1st Event: MOUSE_PRESSED on JCheckBox
- 2nd Event: MOUSE_RELEASED on JCheckBox
The send event sequence is correct, but there are few inconsistencies in
the first scenario:
- How can you have 2 MOUSE_PRESSED and 2 MOUSE_RELEASED events in a
sequence?
- The first scenario is different from the 2nd though we click on the same
object (Resizable).
I have noticed that 1st scenario happens only when the JInternalFrame
receives focus due to the first mouse click. You can observe the similar
behavior by clicking on any JInternalFrame (e.g click on the Fish).