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 9059145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:54:04+00:00 2026-06-16T14:54:04+00:00

I have a Java web services deployed on Glassfish server using Netbeans. Service fetches

  • 0

I have a Java web services deployed on Glassfish server using Netbeans. Service fetches data from database and populates DefaultListModel customers.

DefaultListModel customers is returned to program and used to populate JList however I get error bellow. The name of the web service main package is bank. Can I actually return DefaultListModel from web service and is there any way to repair this error.

incompatible types
found   : bank.DefaultListModel
required: javax.swing.DefaultListModel
  • 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-06-16T14:54:06+00:00Added an answer on June 16, 2026 at 2:54 pm

    You have two different classes that happen to have the same short name. That doesn’t make them interchangeable.

    Your service layer should not depend on the technology you have chosen for the GUI layer. A DefaultListModel won’t be very useful when you’ll switch to a webapp to display the result of the service. Make it return a List<Customer>. DefaultListModel is nothing more than a wrapper around a list anyway.

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

Sidebar

Related Questions

I have two Java web services deployed on Glassfish server using Netbeans 7.2.1, both
I have two Java web services deployed on Glassfish server, both inside the same
We have a C++ (SOAP-based) web service deployed Using Systinet C++ Server, that has
I have a java web service deployed on my local Tomcat server. I am
We have a Java web service that we call from our application. When we
I have a Java web-service which currently runs on a local tomcat server. I
I have created a simple web-service using Java. i want to load jars related
I'm using Apache CXF for my restful web services. I have a service defined
I have a web service deployed on tomcat hosted on a remote server. I
I have written a java restful web service and deployed it on ec2 instance

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.