Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Solaris 9  RSS feed

 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following behaviour is observed only on Solaris 9 with Sun JRE 1.4.0.00-b05. Also, this behaviour is only observed when using the local console of the Solaris machine - using a remote X server does not show the problem.

The following sequence of events occurs:
- The user begins typing into a cell in the JTable.
- The user clicks and holds down the button with the mouse. The user has not committed what they just typed in the JTable cell by pressing Enter or anything equivalent.
- The cell that was being edited, clears (unexpectedly).
- The user releases the mouse button firing an ActionEvent.
- The user sees "editor is null" on standard out.

Following this same sequences of events again causes different behaviour (the expected behaviour).
- The user begins typing into a cell in the JTable.
- The user clicks and holds down the button with the mouse. The user has not committed what they just typed in the JTable cell by pressing Enter or anything equivalent.
- The user releases the mouse button firing an ActionEvent.
- The cell that was being edited stops editing and the data is committed to the model.
- The user sees nothing on standard out.

This "normal" behaviour is observed on subsequent "clicks of the button". It is only the first time that the button is clicked with uncommitted (to the model) data in the cell, that the unexpected behaviour is observed (cell clearing before the ActionEvent followed by no CellEditor when the ActionEvent is fired).

Sample Code:



Any suggestions are most appreciated.
Sun JRE bug searching has not revealed any clues so far.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!