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

  • Home
  • SEARCH
  • 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 4105394
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:14:28+00:00 2026-05-20T21:14:28+00:00

The line of error is noted in the code below. Something I notice is

  • 0

The line of error is noted in the code below. Something I notice is if I highlight the word Customer and hold down ctrl-T it brings up the hierarchy which shows Customer – SwimCalc which is right. But if I do the same with Contractor it says Contractor – SwimCalc.Customer

public class SwimCalc extends JFrame implements ActionListener { 
    private JTabbedPane jtabbedPane;  
    private JPanel Customers; 
    private JPanel Contractors;  
    private List<Customer> customers = new ArrayList<Customer>(); 

    // this fails 
    private List<Contractor> contractors = new ArrayList<Contractor>(); 

    JTextArea NameTextCustomers, ExistTextCustomers, MessageTextCustomers,  
    NameTextContractors, ExistTextContractors, MessageTextContractors; 
    JTextField lengthTextPool, widthTextPool, depthTextPool, volumeTextPool;  

    public SwimCalc() {  
        setTitle("Volume Calculator");  
        setSize (300, 200);  

        JPanel topPanel = new JPanel();  
        topPanel.setLayout( new BorderLayout() );  
        getContentPane().add( topPanel );  

        createCustomers();  
        createContractors();  

        jtabbedPane = new JTabbedPane();  
        jtabbedPane.addTab("Customer", Customers);  
        topPanel.add(jtabbedPane, BorderLayout.CENTER);  
    } 
}
  • 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-20T21:14:28+00:00Added an answer on May 20, 2026 at 9:14 pm

    The error “Contractor cannot be resolved to a type” can mean

    • you never wrote class Contractor {...} anywhere in your code
    • Eclipse can’t compile the whole project because of some build path issues (check the Problem view for build path errors)
    • You forgot to import the type Contractor
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the following error on the line of code below: Syntax error (missing
In the sample code, the line with the 'error comment' gives the following the
I've singled out a runtime error on this line of my code: for (synsAuxCopyIndex=1;
SQL Syntax is still something I am learning. I am getting the error noted
I'm trying to get the code below to work..... The error: ERRORSQLSTATE[42000]: Syntax error
The code below is giving me a flat line for the line of best
Parser Error Message: The entry 'SiteSqlServer' has already been added. Source Error: Line 23:
The line where this error was called from is this: $celkova_suma=mysql_result($c_res, 0, 0)+mysql_result($d_res, 0,
I can see line numbers in my error logs in our development environment, in
I am getting the following error when I get to the line that invokes

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.