¼
¼û·çʹ¶æ
Mainly code is like the flowing:
public class MyFrame extends JFrame {
public MyFrame (){
String logoPath ="c:/test.png"
ImageIcon icon =new ImageIcon(logoPath);
this.setIconImage(icon.getImage());
}
}
but the result is not right,the test.png looks distortion.
Can you help me?
public class MyFrame extends JFrame {
public MyFrame (){
String logoPath ="c:/test.png"
ImageIcon icon =new ImageIcon(logoPath);
this.setIconImage(icon.getImage());
}
}
but the result is not right,the test.png looks distortion.
Can you help me?