posted 21 years ago
The '/images' subdirectory must be a subdirectory of the directory where the code is located that calls for the image. For instance, if the code for divelog.java is located at 'C:\MyApps\divelog', then the '/images' sub must be located at 'C:\MyApps\divelog\images'. The CLASSPATH knows where to find it because it starts at the current directory, and your code gives it a relative path to the *.gif file, 'new ImageIcon("images/diveflag.gif"), JLabel.CENTER);', (the part in the double quotes).
(((o o)))<br />""--^--"" Entropy is Increasing...