Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7159347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:12:59+00:00 2026-05-28T13:12:59+00:00

OK i am using eclipse and its GUI editor and i have a string

  • 0

OK i am using eclipse and its GUI editor and i have a string like this:

public static String[] blah = {"Blah", "Blah", "Blah", "Blah"};

and a JComboBox like this:

JComboBox comboBox = new JComboBox(blah);
    comboBox.setBounds(10, 56, 312, 37);
    contentPane.add(comboBox);

The combobox uses the string above to get its data but when i enter in “blah” to the combobox it has this error…

Type safety: The constructor JComboBox(Object[]) belongs to the raw type JComboBox.    References to generic type JComboBox<E> should be parameterized

it works if i run it because it is only a warning but it is annoying because it wont let me enter design mode unless i make it a comment. design mode gives this error…

INVALID SOURCE. No Constructor Binding. ---  new JComboBox(locations) is not valid source for component creation, it references not existing constructor. 

so i would like to know if there is any other way to overcome this issue

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:12:59+00:00Added an answer on May 28, 2026 at 1:12 pm

    The problem seams to be that WindowBuilder can’t handle the generics version of JComboBox<E> whitch is new in jre7.

    I had the same problem and fixed it by adding the jre6 under Preferences -> Java -> Installed JREs and ensuring that the project uses the execution Environment ‘JavaSE-1.6’ under Project -> properties -> Java Compiler.

    So if you don’t need java 7 you can easily fix it, else you have to wait for Windowbuilder to support the generics version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have 2gb ram on my computer. its a windows 7 using eclipse for
I am using Eclipse 3.6 (Helios64) and m2eclipse 0.12.1.20110112-1712. I have a new project
I made this small Java program using eclipse IDE. I have set the workspace
I am using Eclipse Ganymede. I have a project open and call a static
In Eclipse, its easy to specify buttons for your toolbar using the ActionSets extension
I'm using Eclipse 3.4 and have configured the Java code formatter with all of
I'm using Eclipse Java EE IDE for Web Developers and want something like that:
Have a basic question on running PHP applications using Eclipse PHP on Ubuntu. I
I am using Eclipse with its database. I am using SqlCeConnection for connecting however,
I'm using eclipse Indigo and I'm making GUI, I've decided to use MigLayout cause

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.