Solved

How to refresh table in Java SWT?

Posted on 2013-11-21
1
1,252 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
1 Comment
 
LVL 35

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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This is an explanation of a simple data model to help parse a JSON feed
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

820 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