如何使用 Haxe 引用 javax 类?

How do I reference javax classes with Haxe?

根据this answer (which is a few years old), it should be straightforward to refer to Swing classes from Haxe and it should Just Work™. But, when I clone the referenced gist并尝试构建它,它说有一个错误:

Main.hx:4: characters 7-25 : Type not found : javax.swing.JPanel

我可以参考 java.* 中的任何内容,它似乎工作得很好。

我该如何解决这个问题?

尝试 java.javax.swing.JPanel 而不是 javax.swing.JPanel