mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.23k stars 243 forks source link

Examples Don't Work with Swing #535

Open cch1 opened 3 years ago

cch1 commented 3 years ago

Using lanterna 3.1.1, I consistently get:

Execution error (IllegalArgumentException) at java.awt.image.DirectColorModel/createCompatibleWritableRaster (DirectColorModel.java:1016).
Width (0) and height (0) cannot be <= 0

This happens as soon as I call flush when using the SwingTerminalFrame produced by createSwingTerminal against the DefaultTerminalFactory.

mabe02 commented 3 years ago

Can you try SwingTerminalTest which in bundled inside the Git repo in the test directory and see if that also fails? This might be a problem in how the window is setup rather than the library.

cch1 commented 3 years ago

I would be happy to test this, but I'm not sure how to run this test. Is there a test runner? BTW, I am a Clojure dev and my java skills are limited...