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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:46:04+00:00 2026-06-13T11:46:04+00:00

I am creating a program containing a map. For the GUI I use CardLayout

  • 0

I am creating a program containing a map. For the GUI I use CardLayout cus I’m swapping between windows. One of the windows in my program is with a smaller map, and another one is with a bigger map.

When I swap between these two windows I want the information (zoom, waypoints etc.) on the map I just looked at to be transfered to the 2nd map. But I figured that the best way to do this (considering I’m gonna need several thousand waypoints for my use (why is not relevant)) is just to let the same object be at both the cards.

Will this be possible? I will simply adjust the location and the size, but everything else (like zoom and waypoints) will be intact!

-Thanks alot 🙂

PS: I’m using JXMapViewer

  • 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-13T11:46:05+00:00Added an answer on June 13, 2026 at 11:46 am

    You should separate model and view.

    Create a custom model with all the info (zoom, waypoints etc.)
    Create two views – panels which keep reference to the same model object and have own params – location and size.

    Place in the CardLayout both views and swap when necessary.

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

Sidebar

Related Questions

I am creating a program that I will use to help my customers recover
I'm creating a program counter that is supposed to use only unsigned numbers. I
I am creating a GUI program using MVC which should look like this.. alt
I creating a program which send newsletter with a background image. It works fine
Bassicly im creating a program that reads information from an xml file into a
I am creating a program used to connect to a embedded bluetooth device with
I'm creating a program in VB.NET to output multiple images. Some images will have
I'm creating a program to open .txt files in a given directory, I have
I am creating a program to access information on different types of files, I
I'm creating a program that authenticates from a before it runs. I also want

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.