Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何访问Netbeans的资源编辑器文件?/如何在Netbeans中导入和打开资源编辑器文件?详细说明。
好的,要从代码中打开 .res 文件,您需要使用以下行:
try{ Resources.open("/myResFile.res"); catch(IOException ioe){ //manage the exception }
.res 文件的路径会有所不同,在我的示例中就像在 src 文件夹中一样。