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 37618 - Deprecated properties should show up in italic font in OTHER PROPERTIES
Summary: Deprecated properties should show up in italic font in OTHER PROPERTIES
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
Depends on: 29466
  Show dependency tree
Reported: 2003-11-29 21:50 UTC by _ gtzabari
Modified: 2008-04-28 17:30 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2003-11-29 21:50:48 UTC
dev build 200311241900

   This method has been relaced by JCheckBox.setText()
Comment 1 Tomas Pavek 2003-12-02 09:47:53 UTC
This is strange bug. I saw it reported several times but nobody ever
told me how to reproduce it. It never happened to me. Please see issue
29779 or issue 28921. Could you provide more details? Or will this
again end up as WORKSFORME? ;)
Comment 2 _ gtzabari 2003-12-03 01:25:50 UTC
   Ah ha! Found it! (Took me a while)

   JLabel has two properties. It has "text" and "label". If the user
sets the value of the "label" property in the properties window it'll
generate the setLabel() call.

   We should hide the deprecated property.
Comment 3 Tomas Pavek 2003-12-03 10:27:32 UTC
We may hide the 'label' property, it's simple. But note it is now in
the "Other Properties" category while the right 'text' property is the
main "Properties" category where the user finds all the properties she
usually needs so needs not to expand and search the other properties.
Comment 4 _ gtzabari 2003-12-03 15:34:01 UTC
Can't we hide it altogether?
Comment 5 Tomas Pavek 2003-12-03 15:40:49 UTC
You mean hide the "Other Properties" completely? We cannot do that,
there might be something useful. And if you collapse the category
once, it won't bother you much.

Generaly I don't like much hiding the properties - form editor should
be a tool working with beans generally - it's up to the authors to
decide what properties should be visible (in BeanInfo). Unfortunately,
Swing components are not supported well in this way. So I will hide
the 'label' property.
Comment 6 _ gtzabari 2003-12-03 15:58:07 UTC
Agreed. This is a good solution.

A better solution, IMH, would be mark all deprecated properties with
italics to make them stand out and move them to OTHER PROPERTIES.

If you don't mind, I'll modify this issue to become a feature request
to do just that.
Comment 7 Tomas Pavek 2003-12-03 16:06:20 UTC
Okay, sounds reasonable.
Comment 8 _ tboudreau 2003-12-03 17:27:22 UTC
Actually, strikeout seems like a better choice than italic (also
consistent with code completion, etc.).
Comment 9 _ gtzabari 2003-12-03 18:13:02 UTC

   Agreed. Strikeout makes more sense. This still depends on issue
#29466 though, right?
Comment 10 _ gtzabari 2003-12-04 01:47:01 UTC

   I also noticed that once "label" has been set, it is impossible to
remove it. For example, I set the "label" fo a button then go into the
"text" property and reset it to nothing. Going back into the
underlying code I see setLabel() is still there.
Comment 11 _ gtzabari 2003-12-04 01:53:30 UTC
   Scratch that last comment. Deferred code generation was on.
Comment 12 Tomas Pavek 2005-05-13 17:35:15 UTC
Not sure if we can recognize the deprecated methods somehow. Annotations from
1.5 seem to me the only way.
Comment 13 kate 2008-04-28 17:30:48 UTC
"label" property is still visible -> "setLabel(..)" [striked] is generated for JButton or JCheckBox