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

Swing window disappears after an instant #510

Open
besmith43 opened this issue Feb 23, 2022 · 0 comments
Open

Swing window disappears after an instant #510

besmith43 opened this issue Feb 23, 2022 · 0 comments

Comments

@besmith43
Copy link

I'm kind of new to jruby and warbler, but I've run into an issue that I can't figure out. Over the last few weeks, I've been working on buildiing Swing interfaces from jruby and packaging them through various methods. So far I've ironed out 3, but warbler is by far the easiest. However the jar that is produced closes the Swing window almost instantly instead of waiting for the use to close it. Like I said, I'm a relative novice and have probably missed something, but if someone could take a look at my example code and point in the right direction, I'd greatly appreciate it. I'm doing this on an M1 macbook with Microsoft's openjdk 17, but I've also been testing the code on a windows 10 x86 machine running java 8. It's a company machine. Basically, just clone the repo, and launch run.sh from within it. It will create 3 different jars based on the various methods that I've found and run them.

https://github.com/besmith43/warbler_swing_example/

If there's anything that I can do to make this easier to solve, I'd be more than happy to.

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

1 participant