Its Chrysanthemum.jpg
in Windows. use jpg
instead of jpeg
.
append C:
in Windows to make an absolute path.
new ImageIcon("C:/Users/Public/Pictures/Sample Pictures/Chrysanthemum.jpg");
--EDIT--
use absolute path in case of Windows.
String userHome = System.getProperty("user.home"); // C:/Users/USERNAME
String userPath = userHome.substring(0, userHome.lastIndexOf("\\")); // C:/Users
String fullPath = userPath + "/Public/Pictures/Sample Pictures/Chrysanthemum.jpg";