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 130391

Summary: Cursor dialog might contain previews of the cursor.
Product: guibuilder Reporter: Petr Dvorak <joshis>
Component: CodeAssignee: issues@guibuilder <issues>
Status: REOPENED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Petr Dvorak 2008-03-18 13:04:14 UTC
If you open properties of some component, you can also modify a "Cursor" property - the cursor displayed above the
property. If you open the dialog for Cursor change (entitled for example "[JFrame] - cursor"), you see the cursor names
in the list.

It would be nice, if there was some sort of cursor preview. I think it can be done in following ways (all list items
bellow are conected with "OR"):

- for the selected cursor only
  - there would be a preview window in the dialog, if you select an item in the cursor list, there would be a preview of
the cursor in the preview window
  - simpler one (implemented in 2 minutes, maybe 3?): if you click and select some item in the cursor list, for example
"Move cursor", the mouse cursor would temporarily change to "Move cursor" for a second and then switched back to normal

- for all cursors - each list item would have an icon with the appearance of the related cursor
Comment 1 Jan Stola 2008-06-01 20:44:22 UTC
I would be happy to implement that if it were possible. Unfotunately, the Cursor API is very poor in Java. There is no 
platform independent way to obtain cursor graphics e.g. it is not possible to display a reliable preview.
Comment 2 Petr Dvorak 2008-06-02 08:38:09 UTC
I understand the problem well. But I don't think that closing the issues solves this - we can just try to figure out
some workaround. (One of those I mentioned above, or something else...)

I actually have got something, what about this: there would be a panel called "Cursor test area" in the dialog. When a
user chooses a cursor from the list, he/she can test the cursor above this panel... I personally would appreciate this
feature/enhancement, as I don't think that cursor names are worth remembering.
Comment 3 Petr Dvorak 2008-06-02 08:42:20 UTC
Note: "One of those I mentioned above, or something else..". =>

- simpler one (implemented in 2 minutes, maybe 3?): if you click and select some item in the cursor list, for example
"Move cursor", the mouse cursor would temporarily change to "Move cursor" for a second and then switched back to normal