-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
x86
-
linux
Name: nt126004 Date: 12/19/2001
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)
/*
* testimageicon.java
*
* Created on 27. November 2001, 17:55
*/
/**
*
* @author ralph
*/
public class testimageicon extends java.awt.Dialog {
/** Creates new form testimageicon */
public testimageicon(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {
jButton1 = new javax.swing.JButton();
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
}
});
jButton1.setIcon(new javax.swing.ImageIcon("we0.gif"));
jButton1.setText("jButton1");
add(jButton1, java.awt.BorderLayout.CENTER);
pack();
}
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {
setVisible(false);
dispose();
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
new testimageicon(new java.awt.Frame(), true).show();
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
// End of variables declaration
}
(Review ID: 136360)
======================================================================
- duplicates
-
JDK-4509551 Image corruption when scrolling w/ SwingSet2
-
- Closed
-