Java Image Example Java image example Uses scaling based on device screen size and image size to display that image within the confines of a JPanel that is inside a JFrame. Available images are assumed to be stored in the images directory.