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

Would like to make anapplication in Java that will not automatically parse parameters used
I'm developing a desktop application using java + SWT/JFace, which I'm not very familiar.
I'm not so experienced but i worked on some big Java EE projects (using
I am planning to develop a very simple java application (not mobile, but desktop
After coding and testing a Java application (lets say with Eclipse, but not necessarily)
In a regular Java application, I have a BufferedImage that I would like to
I would like to include customizable keyboard shortcuts in my Java application (the user
I am not a programmer, but would like to know how the following task
I tried decompiling a Java application to which I do not have the source
I do not want my Java SWT application to cache temporary internet files. Currently

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.