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 - Hover action from createObjectHoverAction() causes foreground color being removed
Summary: Hover action from createObjectHoverAction() causes foreground color being rem...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker with 1 vote (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-05 14:37 UTC by derbeth
Modified: 2008-08-15 17:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.