This is a known bug (5079694) that causes JDialog to ignore setCursor() on
any component in its hierarchy, with the exception of cursors set on the
JDialog itself. What the bug report does not say is that this bug affects
also those components that set the cursor internally, by default - for
example, any JTextComponent that is supposed to show the text cursor
("I-beam") shows the default mouse pointer.
This bug was filed when Java 1.5.0 was in beta, but Sun chose to release the
FCS vesrion it without fixing the bug. One would think that something so
visible and reproducible like this bug should get more attention from them.
Does anyone have any idea when Sun is going to release the next maintenance
version, or when this bug is going to be fixed? Search on Google and on Sun
forums reveals nothing.
Partager