I've created a Java application and converted it into JAR format to redistribute.
It works fine on Windows 7, Windows XP, SunOS and Mac OS X 10.5 ... but whenever I try to run it on Ubuntu 10.04 I run into a few problems:
- When running the application it will randomly quit without warning and without any error messages. This does not happen on any other OS.
- I'm using setVisible() to hide some buttons attached to a toolbar in my text editor. In Ubuntu, when a button is hidden using setVisible(false) the space on the toolbar is left blank - whilst in other OS'es the remaining buttons flow sideways to fill the gap.
For the second one, I've tried manually using validate() after setting buttons as not visible, but that doesn't seem to have any effect. It was working without validate() on the other OS'es anyway.
Can anyone tell me more or forward me to some more information about these Ubuntu-specific issues? Preferably I'd like a workaround that I can use to ensure that the program works the same on every OS.
Searching on Google for terms such as "ubuntu java setVisible(true) bug" doesn't give me many relevant results. I've only found one other forum post and that was in relation to a JFrame not acting properly when setVisible(true) was used on it - and the problem was never resolved by the original poster.
Edit: If you require code I can give it to you. But as the program works fine on all but one operating system, I haven't posted it.