• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Missing Cursor Mistery  RSS feed

 
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...
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!