Eclipse找不到按钮的照片



我已经开始学习JButton选项,我的eclipse找不到我保存的照片。是的,我已经把它保存到了真正正确的文件夹中,格式也是正确的(png),但我在eclipse中找不到它,而且当我运行程序时,我的stop也会出现错误。兄弟们,请通过我分享我如何修复它!!

eclipse的文档非常清楚地解释了如何将资源导入到项目中。这是链接。(我摘录了下面的内容)
**Importing resources from the file system**
You can use the Import Wizard to  command link import resources from the local file system into an existing project.
1. From the main menu bar, select  command link File > Import.... The Import wizard opens.
2. Select General > File System and click Next.
3. Click the Browse button on the next page of the wizard to select the directories from which you would like to add the resources.
4. In the import selection panes, use the following methods to select exactly the resources you want to add:
    4.1 Expand the hierarchies in the left pane and select or clear the checkboxes that represent the folders in the selected directory. Then in the right pane, select or clear checkboxes for individual files.
    4.2 Click Filter Types to filter the current selection for files of a specific type.
    4.3 Click Select All to select all resources in the directory, then go through and deselect the ones that you do not want to add.
    4.4 Click Deselect All to deselect all resources in the directory, then go through and choose individual resources to add.
5. Specify the Workbench project or folder that will be the import destination.
6. When you have finished specifying your import options, click Finish.
Tip: You can also import folders and files by dragging them from the file system and dropping them into one of the navigation views, or by copying and pasting.

请确保按照他们的指示导入图片。

最新更新