This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139080

Summary: Hover action from createObjectHoverAction() causes foreground color being removed
Product: platform Reporter: derbeth <derbeth>
Component: GraphAssignee: issues@platform <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description derbeth 2008-07-05 14:37:07 UTC
If you use hover action created by ObjectScene.createObjectHoverAction(), after unhovering objects (in my case - 
connection widgets painted green) have they foreground color changed to black. This is definitely not a desired 
behaviour, hover action should remember hovered object state somewhere and restore it as it was when unhovering.
Comment 1 David Kaspar 2008-08-15 17:50:31 UTC
In the library, the hovering, selected and other states are held in ObjectScene for each object. When an object-state is
changed for a particular object, then Widget(s) representing the objects gets the same object-state set using
"Widget.setState" method. This Widget.setState calls "Widget.notifyStateChanged" method which should be implemented by a
developer to react on a object-state.

Resolving as wontfix.