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 97755 - Alternate value issues
Summary: Alternate value issues
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-13 15:50 UTC by Jiri Vagner
Modified: 2009-12-21 05:43 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 Jiri Vagner 2007-03-13 15:50:32 UTC
Alternate values are disabled by defaut ("Null value" and "Incomplete path"
checboxes are not checked), but value fields are not grey. After two clicks on
that checkboxes color of text and 3dot button is ok. First checbox click removes
1pixel border around text field, white text fields without border looks strange.


Issues with setting alternate values by types ....

Font
-----
Unable to write font name directly
Exception on "..."button

SEVERE [global]
java.lang.AssertionError: Object java.lang.Object@46933 is instanceof Font or null
        at org.netbeans.beaninfo.editors.FontEditor.setValue(FontEditor.java:99)
        at
org.netbeans.modules.form.editors2.FontEditor.setValueToDelegate(FontEditor.java:76)
        at
org.netbeans.modules.form.ResourceWrapperEditor.setValue(ResourceWrapperEditor.java:100)
        at
org.netbeans.modules.form.ResourceWrapperEditor.stateChanged(ResourceWrapperEditor.java:223)
        at
org.netbeans.modules.swingapp.ResourcePanelImpl.fireChange(ResourcePanelImpl.java:381)
        at
org.netbeans.modules.swingapp.ResourcePanelImpl.init(ResourcePanelImpl.java:99)
        at
org.netbeans.modules.form.ResourceWrapperEditor.getCustomEditor(ResourceWrapperEditor.java:164)
        at
org.netbeans.modules.form.FormPropertyEditor.getCustomEditor(FormPropertyEditor.java:262)

Color
-----
After selecting name of color in list, there should be colored sample box, not
after component focus lost. The same issue for manual RGB value editing.
After setting Custom code "Color.BLACK" and closing of custom editor, there is
no change in color text field, there should be a text "<Custom Code>". Reopen of
Binding editor helps.
Text "<Custom Code>" disappers after mouse click, click should invoke Custom
Code editor popup.


Component
---------
While setting Component type property, list boxes are filled with component
names. After click on 3dot button it should be focused on "Value from existing
component" on "Componet" selection, it shows source of values in list.

Action
------
In list of actions there is "null" value, in popuped Action Editor there is a "<
NONE >" value.

"Incomplete path" list contains a few actions, invoked Action editor via 3dot
button is focused on different class and list of actions is empty. 3dot button
for "Null value" list opens Action editor correctly.

After list action change in invoked Action editor there are no changes in Basic
tab in Action Editor.

Boolean
-------
It is impossible to change value of checkbox in both alternate value fields.
Comment 1 Jan Stola 2007-03-23 15:47:07 UTC
Will try to fix/improve when we switch to trunk.
Comment 2 Jan Stola 2008-03-10 14:18:42 UTC
> Component
> ---------
> While setting Component type property, list boxes are filled with component
> names. After click on 3dot button it should be focused on "Value from existing
> component" on "Componet" selection, it shows source of values in list.

I agree that it would make sense to focus on "Value from existing component" in this case, but the current behaviour is 
as designed. The combobox that you can see before invoking '...' button is provided by Component chooser property 
editor. Hence, it is correct that "Component chooser" editor is selected when '...' button is pressed.
Comment 3 Jan Stola 2008-03-10 14:20:01 UTC
> Boolean
> -------
> It is impossible to change value of checkbox in both alternate value fields.

This was a problem in openide. This was already fixed.
Comment 4 Jan Stola 2008-03-10 14:20:56 UTC
> Font
> -----
> Unable to write font name directly
> Exception on "..."button

The exception is no longer thrown.
Comment 5 Jan Stola 2008-03-10 14:23:26 UTC
The most serious problems from this issue were fixed.
The other problems are minor:
  Color - repainting problems
  Action - weird use-case, it is hard to imagine that someone would bound action property
Hence, lowering priority.
Comment 6 Quality Engineering 2009-12-21 05:43:55 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team