does Griffon support command-line (no swing user interface) project
does Griffon support command-line project?
I don't want to show swin开发者_运维问答g user interface
Not at this point, no. Griffon requires an UI toolkit and relies on Swing as the default one. Efforts are being made to make sure the core of the framework remains UI toolkit agnostic, that way you can switch to a different toolkit in an easier manner. It would be possible to write a Charva based plugin for Griffon for example.
One possible solution would be to have your griffon app have a "throwaway" view, and interact with the user via the command-line. As long as your machine has some sort of window environment, swing won't choke, and if you launch the app from the command line, you should still be able to access stdin and stdout.
精彩评论