Solved

How to refresh table in Java SWT?

Posted on 2013-11-21
1
1,137 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 2 41
Magic Software info 18 100
JAVA part two 5 39
unix in java example 9 37
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now