Wrox Programmer Forums
|
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 December 27th, 2005, 11:29 AM
Registered User
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default image in java

Hi
i want when open with filechooser.showOpenDialog(this) and for example i selected

a.jpg file ,this file open into jdesktoppane()

Plz help me...

Kevin
 
Old January 10th, 2006, 05:09 PM
Authorized User
 
Join Date: Aug 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can do that easily,
Get the name of the selected file and path.
Get the image, depending upon what you are using Applet of Application.
After getting the image you draw the image on the panel and add to the JDesktopPane.

For more information on loading and using images, see examples at,

http://www.javareference.com/jrexamp....jsp?rootcat=1

Rahul.
[email protected]
http://www.javareference.com

[email protected]
--------------------------
http://www.javareference.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
doc to pdf/image using java aditya_a7 J2EE 3 January 5th, 2010 09:50 AM
java script to prevent users to copy image... ethantinder Javascript How-To 3 May 23rd, 2008 12:52 PM
The very simple way to make a image slider by Java o0DarkEvil0o Javascript 0 May 19th, 2008 08:31 PM
oracle image using java ruzdi SQL Server 2000 1 March 3rd, 2008 07:35 PM
retrieval of image using java anirudh MySQL 1 July 23rd, 2003 03:33 PM





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