473,396 Members | 2,109 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,396 software developers and data experts.

How to give variable containing path in an image reading syntax

Program:

public void imagdisp(String m)
{
try
{ image =
ImageIO.read(this.getClass().getResource(m));
} catch(Exception e)
{
System.out.println(e);
}
c = new ImageCanvas( image );
add( c );
}

Here variable m containing image path
Dec 5 '11 #1
0 1221

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

Similar topics

1
by: DotNetJunkies User | last post by:
I developed a Windows Service that uses the Oracle Client software. When I dump the "path" statement in the Service program it is not the same as the System Administrative screen path. The Service...
4
by: supster | last post by:
I have the full file path of a file stored as a string and I'de like to get the file size in bytes. What is the most efficient way of doing this with a static method from the File class or...
1
by: khaleel.alyasini | last post by:
Hello sirs & madams, I'm currently working on DCT compression algorithm as my project. My knowledge on C++ and DSP is rather weak/moderate. I was wondering if any could help me and teach me the...
0
by: Skeeve | last post by:
Hi there, I'm trying to create a containing box (relative position), and within it, I'm trying to line that box with four (top, right, left, bottom) thin boxes that contain a repeated background...
2
by: Skeeve | last post by:
Hi there, I'm trying to create a containing box (relative position), and within it, I'm trying to line that box with four (top, right, left, bottom) thin boxes that contain a repeated background...
2
by: Cortney | last post by:
If I have done this: <script language="javascript"> var large="/graphics/00000001/main.jpg"; </script> How would I write the MM_openBrWindow to use that variable? So normally it is like...
1
by: neerajmca2007 | last post by:
Hi. I M Working On A Project In Steganoraphy. Now I Have The That How To Read The Image Files And How To Hide The Text In The Image File.n Most Important Thing Thing I M Working In Visual C++...
5
by: Tea Maker | last post by:
Hello experts, I have an Ajax UpdatePanel inside my page. When I click on the "Change Image" button inside it, the image in that panel will change dynamically, based on an external XML file, that...
36
by: vimal3271 | last post by:
I want to know how to read image files in C.. what are the headers that i should include? is there any tutorials regarding this ? pls inform me.
1
by: Rudiger Diezman | last post by:
I am using a tabbed pane with four tabs - three of which work perfectly - the fourth one is supposed to display an image but does NOT ever call the paint method. When I use the same ImagePanel code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.