473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Doubt in get the image using java

kaleeswaran
132 100+
hi!
i was getting the image using ImageIcon in java.but my doubt is ..is there any alternative way to get the image.
give me some idea.....
thanks,
Oct 11 '07 #1
2 1571
Dököll
2,364 Expert 2GB
This is our Java forum, but you can load an image using XML, HTML, even JavaScript...

Can you tell us more?
Dec 29 '08 #2
Tassos Souris
152 100+
There must be other ways but stick to Image and ImageIcon. You can easily load a image and convert between them:
Expand|Select|Wrap|Line Numbers
  1. Image alertBox = ImageIO.read( new File( System.getProperty( "alert.box.image" ) ) );
  2. ....
  3. JButton panicButton = new JButton( /* ... */, new ImageIcon( alertBox ) );
  4.  
You can also get the Image from an ImageIcon object. This is all you want for Swing...
Jan 10 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mark Richards | last post by:
An applet on one of my pages uses a big picture as background. I want to load it before the applet and the rest of the html source. By doing this I want to avoid that the pane of the applet is...
6
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and...
4
by: sandhya2006 | last post by:
Dear Friends, I have a doubt in how to dispaly the original form of a verb using java.ie if the word is arose then the output must be arise.but now in my program there is one text...
0
by: msivamani | last post by:
Hi all, Please provide me with a java code especially Applet code to view a Tiff Image in Internet Explorer... I dont want to view using any software... Thanks, Mohan.
1
by: saskie | last post by:
Hi experts! I am a newbie oracle user. I want to ask on how to store and retrieve an image in oracle using java. I am currently using Oracle10g express. Could anybody help me please...
1
by: rajakolluri | last post by:
Hi, This is Raja.....i am new joiner of this forum. here is my question. i strucked up in manipulating the tab indexes of image tags and buttons that are defined in html using java script. Here...
2
by: shashank narayan | last post by:
i m using a master page in my project and that page contains an image tag . i want to change images in that image tag by using java script after fixed time interval. my technology is asp.net. is it...
7
by: Ramya28 | last post by:
Hi... I need to read and write to an excel sheet with watermark in it by using java.. i can perform the rest of operations i need to on the excel except for watermark image in the output excel.. ...
1
by: balucec | last post by:
Please explain the steps to create a histogram for a binary image using JAVA(JAI). I m working out a project wherein I need to separate single sentences (individual lines only; not upto full...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.