使用 Eclipse 可视化编辑器打开文件对话框
Eclipse 的可视化编辑器中是否有打开文件对话框?就像windows或linux的打开文件对话框一样。
Is there an open file dialog box in Eclipse's Visual Editor? Like the windows or linux Open File dialog box.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用可视化编辑器打开现有文件。检查右键-> “打开方式...”对话。
You open an existing file with the Visual Editor. Check the Right-click -> "Open With..." dialogue.
如果您正在构建 Swing GUI,则可以使用 JFileChooser对话。我不确定 VE 中是否有一个可视化小部件,但您确实可以选择使用选择 Bean 选项添加任何 Bean。 这篇文章有一些关于使用 Choose Bean 的内容。但是,我认为通过代码执行文件选择器来响应按钮单击等事件会简单得多。
If you are building a Swing GUI then you can use a JFileChooser Dialog. I am not sure that there is a visual widget for this in the VE but you do have an option to add any bean using the Choose Bean option. This article has a bit about using Choose Bean. However, I think it would be far simpler to do the File Chooser by code in response to an event such as a button click.