Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2003, 11:46 PM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cyrusds_asp
Default Images in Frame AWT Window

 is it possible to insert an image in a Frame AWT Window..
 help...
  sample code if possible...

Cyrus

Cyrus
 
Old November 2nd, 2003, 09:05 PM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mrafaqi Send a message via Yahoo to mrafaqi
Default

hi!
however i never used awt window, but swing JFrame, in which to insert image we actually first make a JLabel object which constructor takes an argument of ImageIcon which represents the particular path of image the method is

 JLabel picture = new JLabel(new ImageIcon("c:/jdk1.3/bin/pic.gif"));

after picture object may be added to Container as Component.








Similar Threads
Thread Thread Starter Forum Replies Last Post
parsing form data from frame to other frame audio-catalyst Classic ASP Basics 5 January 3rd, 2006 02:57 PM
AWT / Swings dharmesh_g Java GUI 7 June 30th, 2005 05:11 PM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
Printing Window in Frame itHighway Classic ASP Basics 1 December 31st, 2004 01:18 AM
awt event model help thanasis_gr Java GUI 2 October 20th, 2004 08:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.