Menu

#25 JavaCurses in linux...

open
Filip
Toolkit (1)
0.9.6
6
2012-04-09
2004-10-24
g zombi
No

I dont know, in which platform do you test javacurses,
but the current cvs HEAD is failing miserably under
linux (and i think in windows also)
First of all, there is a nasty synchronization issue
which introduced at jcurses/system/Toolkit.java (1.19),
Do you know, that this heavy use of 'synchronized'
method is a very bad idea? Especially, when
concurrently two thread have to access the Toolkit, and
this is a very common case, because the library alread
contains at least 2 threads. One event dispatching, ui
painter, and one which reads from the console. And
because Toolkit.readByte and readCharacter protected by
the same lock as the rest of the methods(for example
getScreenHeight()...) then the waiting for a key press
blocks the rest of the UI ! So nothing is painted to
the screen....

There is an other problem, which breaks my little test
application, so it looks a bit strange,the screen
background is black, all of the windows content plane
is also black.... only the titles, and buttons are
visible... I'm sure that this problem is related to the
new 'theme' support, probably some default value is not
specified correctly. If i have time, and can found the
reason, I will post the fix for.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.