Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples Don't Work with Swing #535

Open
cch1 opened this issue Feb 2, 2021 · 2 comments
Open

Examples Don't Work with Swing #535

cch1 opened this issue Feb 2, 2021 · 2 comments

Comments

@cch1
Copy link

cch1 commented Feb 2, 2021

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
Copy link
Owner

mabe02 commented Apr 11, 2021

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
Copy link
Author

cch1 commented Apr 12, 2021

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants