How to overlap two image using seticon? in Java
these are my codes... can someone help me how to set two image using
seticon that will overlap?
Image image;
byte[] imageBytes;
Image image1;
byte[] imageBytes1;
//to get in database
imageBytes=rs.getBytes("IMAGE");
image=getToolkit().createImage(imageBytes);
//to load image
ImageIcon icon=new ImageIcon(image);
Reports.jLabel10.setIcon(icon);
//to get in database
imageBytes1=rs.getBytes("TIRES");
image1=getToolkit().createImage(imageBytes1);
//to load image
ImageIcon icon1=new ImageIcon(image1);
Reports.jLabel4.setIcon(icon1);
No comments:
Post a Comment