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 73072 - Is not possible to add generifyied Swing component visually
Summary: Is not possible to add generifyied Swing component visually
Status: RESOLVED DUPLICATE of bug 63356
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-27 21:12 UTC by brviking
Modified: 2006-03-02 09:06 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 brviking 2006-02-27 21:12:56 UTC
As said in summary, is not possible to add generifyied component to/from
pallete, because can't define data type in declaration/constructor.

Suppose following JComboBox replacement:

public <T> class MyComboBox<T> extends JComboBox {
  public MyComboBox() {
    super();
  }

  public T getSelectedItem() {...}
  public setSelectedItem(T selection) {...}
}

So, since there is a lot of effot to incentive people to use generics (the 1.3
to 5.0 migration guides and so on), I think IDE should completelly support
generics (not only in code editor, but Form editor too).
Comment 1 Jan Stola 2006-03-02 09:06:04 UTC

*** This issue has been marked as a duplicate of 63356 ***