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 130386 - Colors in Properties window
Summary: Colors in Properties window
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 12:20 UTC by Petr Dvorak
Modified: 2010-10-19 13:33 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-03-18 12:20:07 UTC
Product Version: NetBeans IDE Dev (Build 200803170003)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

There is quite an inconvenience in the Properties window when changing a color.

Create a new JFrame form and go to its properties. Find for example the background color property. There should be
something like "[239,235,231]" (with a small color preview). You can now type into this field. You can type any
different rgb values (like "100,0,0" - dark red). But you can also type some named color, for example "red".

When you type "red" in the field, the word "red" is in the field with a color preview (correctly).

But the property field changes from textbox to combobox of type "DropDownList" (C# terminology, sorry). The point is,
that you cannot type in the field anymore, you can just expand the list and choose some color. So if you want to change
the "red" color to "100,0,0" (which is just darker red), you cannot do it without opening a dialog (click "..." button).

The combobox should be of "DropDown" style instead of "DropDownList", so that you can type in the field.

Sorry to annoy you with this link, it is just to explain what I mean:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.comboboxstyle(VS.71).aspx

The user's input should be checked just after the user confirms his input by pressing enter (a dialog "Not a color"
should appear if incorrect color is entered).
Comment 1 Jan Stola 2008-10-02 10:41:38 UTC
ColorEditor resides in core => reassigning to core/property editors.
Comment 2 Stanislav Aubrecht 2008-10-17 10:08:59 UTC
'restore default value' in popup shows editable rgb value again.
Comment 3 Jaroslav Tulach 2010-10-19 13:33:36 UTC
Can you donate a patch? If not, closing as won'tfix.