ImageWithFrame Demo Program
Here is a programming example to show you how to use the ImageWithFrame class, which allows you to display a JPG, GIF or PNG file in a Java Application's MUPanel:
Simple program that draws ImageWithFrame objects
ImageWithFrame.java file used in this example
Sample Output produced by the program
Note that the image file to be displayed should be stored in the NetBeans project folder for the program, not the src folder of the project.
Refer to the Javadocs for the
BufferedImage class
by using this link