Solved

How to refresh table in Java SWT?

Posted on 2013-11-21
1
1,308 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

752 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