The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

Swing: JTable dividers

How can I listen for mouseEntered events on the column dividers in a JTable?

JTable's not changing the mouse cursor like it's supposed to, but it's not clear what component should listen for mouse hover events.
NPR Send private email
Tuesday, June 20, 2006
 
 
LOL! I know who you are now.  Saw this same question on the lajug mailing list. :)

And sorry, I don't have an answer to your question. :)
Crimson Send private email
Wednesday, June 21, 2006
 
 
Well, what exactly do you know about me except my name and email addresss, and what I have disclosed on the JOS forum? :)
NPR Send private email
Wednesday, June 21, 2006
 
 
Well, when you put it that I guess I know less than I thought (which always seems to be the case :) ).
Crimson Send private email
Wednesday, June 21, 2006
 
 
Well, I found a partial answer, and that is that the parent component is "disabled" (getParent.isEnabled() returns false).  When it's explicitly enabled, the cursor behaves appropriately (this is a bug in Swing, which I found on the Sun Java Swing forum).

Now, I just have to trace through several thousand LOC's to find where this table is getting created and added to a container.  One of the many joys of software maintenance.
NPR Send private email
Wednesday, June 21, 2006
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz