Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20054
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-12-02 20:34 -0800 |
| Message-ID | <511a3304-a598-413b-a630-b2e1454fd11c@googlegroups.com> (permalink) |
| Subject | JFrame issues |
| From | K <kalezwe@gmail.com> |
Here is my script does anyone know why this isn't working
import javax.swing.JFrame;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.Continer;
class Jframe {
public static void main(String[] args) {
JFrame frame = new JFrame();
ImageIcon icon = new ImageIcon(puffin.jpg);
JLabel label = new JLable (icon);
Container contentPane = frame.getContentPane();
contentPane.add(label);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
JFrame issues K <kalezwe@gmail.com> - 2012-12-02 20:34 -0800 Re: JFrame issues Lew <lewbloch@gmail.com> - 2012-12-02 21:12 -0800 Re: JFrame issues Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-03 08:34 -0500 Re: JFrame issues Arne Vajhøj <arne@vajhoej.dk> - 2012-12-03 22:51 -0500
csiph-web