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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:45:18+00:00 2026-05-17T23:45:18+00:00

My Java application is not very big, but I would like to do it

  • 0

My Java application is not very big, but I would like to do it the “right way”. Looking for suggestions to not make a big mess…

I am using Swing, the Swing Application Framework and H2 database.

It is a single frame application with different tabs. Most tabs will reflect some aspects of the data in the database. Some of them will be able to change it. Some tabs will have buttons or actions that will redirect to another tab… that’s basically it.

I would like to keep things clean, rather portable and flexible (can enable disable some tabs for example or add some easily).

Here are the questions :

1) How to have tabs “refreshed” when the database content changes ? Implement some Listener interface ? Should I define that interface or there is something already existing I can reuse ?

2) How to “link” the different tabs together so that it is easy to jump from one to another (and may have to carry some argument to setup the destination tab to the right “view”)

3) If I set some preference with some filters in another part of the application, how do I share such settings with the whole application ?

And when I ask “how to”, I really mean “what is the best way”… I can get that working already… just looking for the right tool to use, design pattern or such.

  • 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-17T23:45:19+00:00Added an answer on May 17, 2026 at 11:45 pm

    If using swing, you can use tabbed pane to have a tabular layout.

    Implement a listener (as you are planning). Have a look at observable interface in Java.

    You can implement a singleton(eg PreferenceManager class) to hold the preference and access it across the application to access properties.

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

Sidebar

Related Questions

I'd like to measure memory allocation data from my java application, i.e. the sum
This is my first Java application I am creating (using Eclipse IDE) and the
I have a Java application with server and Swing client. Now I need to
I have a Java application I've been working on for a year or two
I have an Java application for copying large amounts of data from users' workstations
I need to load very large ontology represented as N-triples file(1gb) to the openrdf
I'm trying to find ways to stream a live video generated in a Java
I've been reading some posts here and articles around the web but I can't
From the moment I have faced Python, the only thing I can say for
I wanted to get the community's feedback on a language choice our team is

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.