Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18576
| Received | by 10.66.85.98 with SMTP id g2mr589969paz.37.1346966486035; Thu, 06 Sep 2012 14:21:26 -0700 (PDT) |
|---|---|
| Received | by 10.68.225.234 with SMTP id rn10mr960523pbc.3.1346966486018; Thu, 06 Sep 2012 14:21:26 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!usenet.stanford.edu!r4no1569970pbs.0!news-out.google.com!a8ni2447pbd.1!nntp.google.com!4no1608505pbn.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Thu, 6 Sep 2012 14:21:25 -0700 (PDT) |
| In-Reply-To | <k1o0uq$i81$1@dont-email.me> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=120.60.139.57; posting-account=BaSi9goAAADrHaXLsipAykA97Lwe3s3v |
| NNTP-Posting-Host | 120.60.139.57 |
| References | <e56859b3-9877-441e-9ad4-722ed744c8de@googlegroups.com> <k1o0uq$i81$1@dont-email.me> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <6de71743-1f40-468f-bccb-03bcbea32a9c@googlegroups.com> (permalink) |
| Subject | Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox |
| From | sameer k <sameer12982@gmail.com> |
| Injection-Date | Thu, 06 Sep 2012 21:21:26 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.java.programmer:18576 |
Show key headers only | View raw
On Thursday, August 30, 2012 9:00:35 PM UTC+5:30, Jeff Higgins wrote:
> On 08/30/2012 11:03 AM, clusardi2k@aol.com wrote:
>
> > Without removing warnings in general, for the below code, how can I remove the below warning.
>
> >
>
> > jComboBox6.addItem("Big rock");
>
> >
>
> > Warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox
>
> >
>
> generics or annotations
to handle this warning in netbeans right click jcombobox and go to properties and open it,then click code tab and find Type parameters and write String in it. this will fix your problem and want generate this warning. doing this will do same as this code > JComboBox<String> jComboBox6 = new JComboBox<String>(...); and fix it.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox clusardi2k@aol.com - 2012-08-30 08:03 -0700
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Jeff Higgins <jeff@invalid.invalid> - 2012-08-30 11:31 -0400
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox sameer k <sameer12982@gmail.com> - 2012-09-06 14:21 -0700
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Shyam <shyam.k.kotnana@gmail.com> - 2012-08-30 08:38 -0700
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-30 11:40 -0400
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Jeff Higgins <jeff@invalid.invalid> - 2012-08-30 11:52 -0400
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Jeff Higgins <jeff@invalid.invalid> - 2012-08-30 12:08 -0400
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Jeff Higgins <jeff@invalid.invalid> - 2012-08-30 12:09 -0400
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-30 13:18 -0400
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Roedy Green <see_website@mindprod.com.invalid> - 2012-09-02 14:06 -0700
Re: How to eliminate warning: unchecked call to additem(E) java as a member of the raw type javax.swing.JComboBox Roedy Green <see_website@mindprod.com.invalid> - 2012-09-03 18:14 -0700
csiph-web