Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Windows is not refreshed on linux #39

Open
zfil opened this issue Nov 24, 2015 · 5 comments
Open

Windows is not refreshed on linux #39

zfil opened this issue Nov 24, 2015 · 5 comments

Comments

@zfil
Copy link

zfil commented Nov 24, 2015

Hello

When a mail is received the windows content is not refreshed (at least on linux running oracle jdk 1.8).
Only way to force the refresh is to resize the window.

Looking at the code I see that the gui operations are not done in the dispatch thread as it should be from what I remember in swing, not sure how to fix this cleanly in the meantime I'm forcing a repaint of the mainpanel (ugly) but that fixes the issue.

@Nilhcem
Copy link
Owner

Nilhcem commented Nov 24, 2015

Thanks, which window/desktop manager are you using?

@zfil
Copy link
Author

zfil commented Nov 24, 2015

Cinnamon on Linux Mint 17.2

@rdalkire
Copy link

Is this still an issue? Out of curiosity I built this on a similar OS - Mint 17.3 (64 bit), Cinnamon 2.8.8, Java 1.8.0_92. Ran an integration test sending 5 emails, with and without delay. The window seems to display emails as they're being processed; I'm not sure if I'm duplicating the scene.

@zfil
Copy link
Author

zfil commented Jun 27, 2016

To be honest I only run my forked version with my fix ...

But in any case I believe your code is incorrect because as I said you're not doing the repaint operations in the event dispatch thread.

@evrycollin
Copy link
Contributor

you can have a look to ymartineau/peers#13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants