ModelCreator
ModelCreator copied to clipboard
Cannot open dropdown menus on Linux
If I try to open a dropdown menu it closes immediately after it shows up. Sometimes it stays open. I tested it on the menu in Rotation -> Axis and Faces -> Side
I use: oracle java 8 Ubuntu 16.04
Same issue on OpenJDK 8, under KDE. Window appears to instantly unfocus, closing popup menu.
Found the problem.
In the model creator class, on line 136, there is a call to canvas.requestFocusInWindow(). This closes all dropdown menus, along with a few other things. On windows, this is only called when the user has left and then refocused the main window, but on Linux, it happens when a user opens the dropdown menu, too. Removing that call fixes the problem.
TL/DR: Fixed Jar here: https://znix.xyz/files/ModelCreator-patched.jar
@ZNixian Can´t you create a pull request of it?
I use NetBeans, and can't seem to get it to build. I was able to use a game engine I wrote to load OpenGL, but that obviously wouldn't work for a PR. Also, I know what is causing the problem, but just disabling it seems like it might change something else. I'll have a closer look at it, and then might end up sending off a PR.