Nilhcem / FakeSMTP

Dummy SMTP server with GUI for testing emails in applications easily.
http://nilhcem.github.com/FakeSMTP/
Other
990 stars 318 forks source link

Windows is not refreshed on linux #39

Open zfil opened 8 years ago

zfil commented 8 years ago

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 commented 8 years ago

Thanks, which window/desktop manager are you using?

zfil commented 8 years ago

Cinnamon on Linux Mint 17.2

rdalkire commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

you can have a look to https://github.com/ymartineau/peers/pull/13