How can I get the relative path of the folders in my project using code?
I\'ve created a new folder in my project and I want its relative path so no matter where the
File relativeFile = new File(getClass().getResource("/icons/forIcon.png").toURI()); myJFrame.setIconImage(tk.getImage(relativeFile.getAbsolutePath()));