Question regarding the Cursor over an element

I am trying to set a HAND cursor over a JLabel, but the GUI don't display it correctly. I have created a parent class of JLabels in my application. I implemented the MouseAdapter object to this JLabel. For mouseEnter event I change the Cursor shape to HAND_CURSOR. For mouseExit event I put back the DEFAULT_CURSOR. If I print the CURSOR type when I enter with the mouse over JLabel, it shows me correctly, but phisically on the screen, the cursor is not changed. Please help with my problem.

Thx.

[511 byte] By [vpopovici@ro.soluziona.coma] at [2007-11-27 5:13:56]
# 1

I am trying to set a HAND cursor over a JLabel, but the GUI don't display it correctly. I have created a parent class of JLabels in my application. I implemented the MouseAdapter object to this JLabel. For mouseEnter event I change the Cursor shape to HAND_CURSOR. For mouseExit event I put back the DEFAULT_CURSOR. If I print the CURSOR type when I enter with the mouse over JLabel, it shows me correctly, but phisically on the screen, the cursor is not changed. Please help with my problem.

Thx.

vpopovici@ro.soluziona.coma at 2007-7-12 10:35:46 > top of Java-index,Desktop,Core GUI APIs...
# 2

I have found the problem. All my components are placed in a JSplitPane. In order to freeze the separtor from this Pane, I have added the line setEnabled(false). This caused the problem with the setCursor function which I have defined for the components in the system. Now I commented this line, and the cursor is changed depending on the defined cursor for each component. Now I have to think about other solution for freezing the separator. Problem closed.

vpopovici@ro.soluziona.coma at 2007-7-12 10:35:46 > top of Java-index,Desktop,Core GUI APIs...