简体   繁体   English

带有 Eclipse 可视化编辑器的文件打开对话框

[英]File opening dialog box with Eclipse Visual Editor

Is there an open file dialog box in Eclipse's Visual Editor? Eclipse 的可视化编辑器中是否有打开文件对话框? Like the windows or linux Open File dialog box.如 windows 或 linux 打开文件对话框。

You open an existing file with the Visual Editor.您使用可视化编辑器打开现有文件。 Check the Right-click -> "Open With..." dialogue.检查右键单击->“打开方式...”对话框。

If you are building a Swing GUI then you can use a JFileChooser Dialog.如果您正在构建 Swing GUI,那么您可以使用JFileChooser对话框。 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.我不确定 VE 中是否有一个可视化小部件,但您可以选择使用“选择 Bean”选项添加任何 bean。 This article has a bit about using Choose Bean. 这篇文章有一点关于使用选择 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.但是,我认为通过代码执行文件选择器来响应诸如按钮单击之类的事件会简单得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM