Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #20054

JFrame issues

Received by 10.224.205.65 with SMTP id fp1mr5309140qab.4.1354509253323; Sun, 02 Dec 2012 20:34:13 -0800 (PST)
Received by 10.49.116.1 with SMTP id js1mr2014776qeb.19.1354509253262; Sun, 02 Dec 2012 20:34:13 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i9no685582qap.0!news-out.google.com!gf5ni37485490qab.0!nntp.google.com!i9no685578qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Sun, 2 Dec 2012 20:34:13 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=24.18.212.160; posting-account=eI-sdAoAAADz9KwBuVAXJN_7wuu5YBT1
NNTP-Posting-Host 24.18.212.160
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <511a3304-a598-413b-a630-b2e1454fd11c@googlegroups.com> (permalink)
Subject JFrame issues
From K <kalezwe@gmail.com>
Injection-Date Mon, 03 Dec 2012 04:34:13 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:20054

Show key headers only | View raw


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 | NextNext in thread | Find similar | Unroll thread


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