如何将 fortran 代码与 java gui 集成?
我有一个 fortran 程序,它接受通过文件(*.dat 或其他)的输入。
我计划制作一个 GUI(可能使用 SWT),它将根据用户输入(通过表单:文本框、下拉列表等)构造输入文件。
问题是,我以前从未这样做过。有什么标准方法可以解决这个问题吗?我很确定很多人已经这样做了(基于谷歌搜索),我只是还没有看到这方面的标准方法。
I have a fortran program that accepts input via a file (*.dat or whatever).
I'm planning to make a GUI (probably using SWT) that would construct the input file based on user input (through forms: textboxes, drop downs, etc).
The problem is, I've never done this before. Is there any standard way to go about this? I'm pretty sure a lot of people have done this (based on google searches), I just have not seen a standard approach for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你可以看看gtk-fortran:
https://github.com/vmagnin/gtk-fortran/wiki
You can have a look at gtk-fortran:
https://github.com/vmagnin/gtk-fortran/wiki
我感觉你的印象是你不能用 Fortran 制作 GUI,不是吗?
因此,这里有一些链接可以尝试摆脱这个问题......
Compaq Visual Fortran:创建 Windows 应用程序指南
Winteracter
GINO
MSB 已经提到了我个人最喜欢的 DISLIN。
(我确信还有其他的,但这些是首先想到的)。
I get the feeling you're under the impression that you cannot make a GUI in Fortran, no?
So, here are a few links to try to shake that one ...
Compaq Visual Fortran: A Guide to Creating Windows Applications
Winteracter
GINO
And M.S.B. already mentioned my personal favourite, DISLIN.
(I'm sure there are others as well, but these are the first that come to mind).
如果您现在开始使用 Java,我建议您使用 Netbeans 进行开发。 Netbeans 提供了一个表单设计器,可以让您的生活更轻松(使用 Swing 而不是 SWT)。准备好文件后,可以使用 进程构建器。
If you are now beginning with Java, I recommend that you use Netbeans for the development. Netbeans provides a form designer that will make your life easier (uses Swing and not SWT). When you have your file ready, you can start the Fortran process with ProcessBuilder.
如果您不知道,可以使用 Fortran 代码构建 GUI,例如使用 DISLIN 图形库。
In case you don't know about it, it is possible to construct a GUI with Fortran code, e.g., using the DISLIN graphics library.