FakeSMTP icon indicating copy to clipboard operation
FakeSMTP copied to clipboard

Windows is not refreshed on linux

Open zfil opened this issue 9 years ago • 5 comments
trafficstars

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.

zfil avatar Nov 24 '15 10:11 zfil

Thanks, which window/desktop manager are you using?

Nilhcem avatar Nov 24 '15 10:11 Nilhcem

Cinnamon on Linux Mint 17.2

zfil avatar Nov 24 '15 13:11 zfil

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.

rdalkire avatar Jun 26 '16 04:06 rdalkire

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.

zfil avatar Jun 27 '16 10:06 zfil

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

evrycollin avatar Jun 27 '16 10:06 evrycollin