When I started Logisim on my Ubuntu 16 machine, the menus missed some separators and the deactivated entries font edges were not rendered correctly. I changed the look and feel to nimbus to ensure platform independence.
Also I started refactoring the class AbstractGate, since there is a very long method "paintBase" that is used frequently and was complex. I moved some of the code to the InstancePainter.
There were not unit tests, so I created the first ones.
To ensure compatibility with newer Java versions, I exchanged some a deprecated method of JList with the recommended one.
Please include these commits, to ensure a higher display quality and less code complexity.
When I started Logisim on my Ubuntu 16 machine, the menus missed some separators and the deactivated entries font edges were not rendered correctly. I changed the look and feel to nimbus to ensure platform independence.
Also I started refactoring the class AbstractGate, since there is a very long method "paintBase" that is used frequently and was complex. I moved some of the code to the InstancePainter.
There were not unit tests, so I created the first ones.
To ensure compatibility with newer Java versions, I exchanged some a deprecated method of JList with the recommended one.
Please include these commits, to ensure a higher display quality and less code complexity.