This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Missing Cursor Mistery  RSS feed

 
Daniel Puryear
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a JPanel with JPanels arranged in a Gridbag grid. Have resizing logic that uses MouseListener and MouseMotionListener that permits the user to click and resize the grid of JPanels, pretty straightforward stuff really. Mouse hovers over a sweet spot and the cursor changes to Cursor.E_RESIZE_CURSOR to signal a resize is enabled; user MouseDowns to get a visual cue of the partition location; user drags partition to new location; user releases Mouse to set the new PrefferredSizes etc.
Have used the little thing for several years as a simple "PropertyEditor" panel embedded in an application Frame. Now the rub, currently using 1.4.02 and have the PropertyEditor added to a floating modal JDialog. Everthing works as expected, EXCEPT Cursor.E_RESIZE_CURSOR is apparently being reset to Cursor.DEFAULT by something up the food chain, or I've done something stupid to the JDialog container that doesn't permit anything but the DEFAULT( which I don't believe to be the case.)
Has anyone had a similar situation or have some clues as the wandering cursor dilimia...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!