Adding Image over a Transparent JFrame
问题 I want to display an image over a transparent JFrame. The image is not shown clearly. If I add any component like JButton or anything else it is displayed well except any component which has image inside it. Here is a code example. import java.awt.Color; public class PunchFrame2 extends javax.swing.JFrame { public PunchFrame2() { initComponents(); setUndecorated(true); setBackground(new Color(0,0,0,0)); } /** * This method is called from within the constructor to initialize the form. *