1. Call the files in the "images" folder and place them in ImageIcon for display. 2. Display normally under windows. Java calls the local graphics processing library during graphics processing. When using Java for graphics processing (such as image scaling, image signing, report generation), there will be no problem if it is run on Windows. If you transplant the program to Linux/Unix, there may be an error that the graphics cannot be displayed. 3. Prompt message: "Can'tconnecttoX11windowserver" This is because Linux graphics processing requires an XServer server. (For the graphics processing mode of Linux, refer to the modification of Tomcat as follows: Open the %Tomcat_home%/bin/catalina.sh file at 86% of the file, and add: -Djava.awt.headless=true/reference to the script that starts Tomcat: "$_RUNJAVA"$JAVA_OPTS$CATALINA_OPTS/-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS"-classpath"$CLASSPATH"/-Dcatalina.base="$CATALINA_BASE"/-Dcatalina.home="$CATALINA_HOME"/-Djava. io.tmpdir="$CATALINA_TMPDIR"/-Djava.awt.headless=true/org.apache.catalina.startup.Bootstrap"$@"start/>>"$CATALINA_BASE"/logs/catalina.out2>&1&if[!- z"$CATALINA_PID"];thenecho$!>$CATALINA_PIDfifielif["$1"="stop"];then after saving, restart and you can process the graphics