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

The Archive Base Latest Questions

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

I have a JTable that get’s populated with data from a MySQL Table, but

  • 0

I have a JTable that get’s populated with data from a MySQL Table, but there are multiple Clients updating and inserting to the Database at once. My Goal is to provide some kind of near realtime experience for the Table. I thought of just updating the TableModel every let’s say 5 seconds, but with over 1000 rows that doesn’t really make sense. Could someone explain me how the general approach to something like this looks or which techniques i should be using,

Thanks in advance,

Stefan

  • 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-14T10:48:19+00:00Added an answer on June 14, 2026 at 10:48 am

    You’d need to go for a 3 tier architecture:

    Between swing clients and MySql database put an application server.

    The clients will not connect directly to the database, instead they’ll connect to the application server which will provide higher level APIs (e.g. business logic methods) to get the data from the DB.

    As for data refresh in clients, you could use something like JMS to push events to the clients when data changes.

    If you don’t have control of the other clients that change the data you’ll have to use some kind of polling.

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

Sidebar

Related Questions

I have this code to get a row from a JTable that is generated
I have a JTable that I want to use to display some data (a
I have a ScrollPane and JTable that should only have one row of data.
I have a code that reads a multiple text files from a folder and
I have a JTable in a JScrollPane and the data comes from a database.
Have an application that has a Jtable with the data held in RAM, the
I have a JTable that is populated using a custom TableModel I created. I
i am writing java desktop application. i have some textareas to get data from
I have a JTable with few columns that are painted as checkboxes. What I
The problem I have is that when more rows are added to JTable (jtbls)

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.