Solved

How to refresh table in Java SWT?

Posted on 2013-11-21
1
1,390 Views
Last Modified: 2013-11-27
Hi,
I ma working on creating a GUI in Java SWT and in this GUI I have a table that I update as I get data from the work thread.

The GUI has a feature to stop the process. It works fine and it can stop the processes. However, sometimes the data is already generated but since I stop the process it does not show the last one until I do some action on the table such as filtering and unfiltering again.

Is there a way to refresh the table after I stop running the processes?

Thanks,
0
Comment
Question by:Tolgar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
mccarl earned 500 total points
ID: 39668073
At the end of the normal GUI updating code, you have a table.setRedraw(true); call to turn back on the drawing of the table. Since when you cancel the processes, that part of the code probably doesn't get to run, can you add that call to your "process cancelling" code aswell, so that it get re-enabled for that code path aswell as the "normal" code path?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question