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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:28:33+00:00 2026-06-18T10:28:33+00:00

I am new to Java and trying to create a cataloging program as a

  • 0

I am new to Java and trying to create a cataloging program as a beginning exercise. I’ve made the interface and I can populate the initial JComboBox with the titles the way I want but my issue comes with storing the rest of the data so that it can be easily retrieved based in the title from the JComboBox.

My xml looks something like this:

<Movies>
<Movie>
    <Title></Title>
        <Studio></Studio>
    <Director></Director>
    <Actors></Actors>
    <Rating></Rating>
    <Stars></Stars>
    <Review></Review>
    <Synopsis></Synopsis>
    <Genre></Genre>
</Movie>
</Movies>   

with multiple movie elements. I want to store the data for each movie in some form of array so that I can populate the rest of the form fields with the proper data when a user selects a title from the JComboBox. But I can’t decide on a good array type to do this. It seems to me I need some kind of array that looks like this:

Array<"Title1" -> "Title", "Studio", ....;
      "Title2" -> "Title", "Studio", ...;
       and so on...>

I’ve been looking into different arrays like Hashmaps, ArrayLists, Multi-Dimensional String Arrays and maps but none of these seem to do what I’m thinking.

I’d really appreciate your thoughts on this.

  • 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-18T10:28:34+00:00Added an answer on June 18, 2026 at 10:28 am

    Why don’t you create a class Movie with fields for Title, Directory, Actors, etc? You can then have a list containing all your movies.

    If the movies are uniquely identifiable by their name, you can put them in a HashMap with the name of the movie as the key and the Movie object as the value.

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

Sidebar

Related Questions

I am new to Java and trying to do a simple program to help
I'm trying create a new file with a Java Applet, but I don't know
I'm trying out log4j in a simple test app. I create a new Java
I'm using the new experimental taskqueue for java appengine and I'm trying to create
I'm fairly new to Java and I'm trying to create a GUI application with
I'm new to Java and JavaFX I have php,javascript,HTML experience... I'm trying to create
hi i am a new java programmer. i am just trying to create a
I am new to java and I am trying to create an XML document
Hi am new to java and have been trying to create a form for
I'm learning java and was trying to create a simple program to help me

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.