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

  • Home
  • SEARCH
  • 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 6028631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:46:06+00:00 2026-05-23T04:46:06+00:00

I am making a Java Desktop Application using Netbeans. I am new to Desktop

  • 0

I am making a Java Desktop Application using Netbeans. I am new to Desktop Applications and I’m not all that great with Java ether.

I have a JLabel with a count value that takes a minute or two to calculate. The value is the total files on the computer.

I have a Master class which has one method for the counting of the files and another one that sets the JFrame to visible and passed the count value to the JFrame class which is then assigned to the JLabel.

This is what I want:

  1. Set JFrame to visible right away without waiting for count calculations.
  2. Show Count value so far and update every second until the count calculations are done.

What code would I use to do 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-05-23T04:46:07+00:00Added an answer on May 23, 2026 at 4:46 am
    label.setText();
    

    Read the section from the Swing tutorial on Concurrency. You can use the SwingWorker to execute your long running task in the background. Then you periodically publish values and and update the GUI using the setText() method.

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

Sidebar

Related Questions

i am making a twitter client (desktop application) in Java, i am using twitter4j
I am making an application with Java Swing and i have a problem. I
I'm relatively new to java (specifically swing) and have recently been making some fairly
I have a Java Swing application that is being used as a cluster application.
I am making a forum posting web application using Java and I want to
I'm making a Java application with an application-logic-thread and a database-access-thread. Both of them
I have been using Hibernate + HSQLDB on my desktop for developing a database
I'm making a Java app that receives some names from SQLite and puts them
any insight as to making/optimizing full-text searches on bigtable using java? best practices and
I am making a Java Applet right now. I have compiled with Java 1.5.

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.