Problems about using images in Eclipse and JBuilder

xiaoxiao2021-03-06  43

About Eclipse and JBuilder Using Pictures Using Pictures Using Many netizens asking questions about using pictures in Eclipse and JBuilder, discussing with the bamboo efei, deciding to write a FAQ, so that everyone queries. The first is jbuilder [/ b] in JB, just copy the picture to the src directory, or it is possible. When you open the project, JB will automatically look for all image files in the src directory. If the project is turned on to the src directory, JB does not immediately detect more pictures, so many people will be wrong. And just do it just to refresh the project. So in JB should be more simple and some additional files for some special files, such as GIF (DoJA is using GIF images), the JB packages will not put these files by default, so they have to change it. After using Archive Builder to complete the package, view the property of JAD or JAR in JB, there will be a list of file types, and whether each file type is option, as long as the corresponding file type, such as GIF, set to COPY, so JB You can copy files automatically when you pack it and you can enter the package [b] followed by Eclipse in Eclipes, first check the menu first - Windows - Perferences - Java - Build Path You have Souce and Output Folder How to set it, if you like to automatically generate a src directory when new projects is new, select Folder if you like yourself. Select Project. As shown below: This topic related pictures are as follows: I remember whether it is automatic or new, SRC should be Source Folder and should not be Folder. When it comes to the picture, we only need to build a new source folder in the new project, put the picture in the picture, and you will expand the file path in "/", such as Image Image = image.createImage ("/ File.png "); these questions are just because everyone may use these IDEs for the first time.

转载请注明原文地址:https://www.9cbs.com/read-56867.html

New Post(0)