Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2008, 03:47 PM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Smile To open an image file such as Jpeg file using JAva Program
Hi,
I m trying to open one JPEG file in MS Paint by a JAVA Program...Can anyone help me,

Thanks in Advance,
Mani
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 06-25-2008, 04:21 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 195
Rep Power: 2
rjuyal is on a distinguished road
Default
you want this chap!

Code:
process = new ProcessBuilder("mspaint","yourFileName.jpeg").start();
__________________
i am the future
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-25-2008, 07:45 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 307
Rep Power: 2
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Default
I think even Java Advanced Imaging (JAI) can help u out. I have not tried it, chk and come back if facing any problems.
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-26-2008, 09:12 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default
Thanks for u r reply.....................
@Niveditha by using JAI i m able to open the image................canu be more specific on it.how to achieve it using mspaint........
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-26-2008, 12:06 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 307
Rep Power: 2
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Default
Hi,
I feel you will have to get the image, store it in the form you want virtually and then open it.
Check this link for more help
http://www.nanodottek.com/NDT4_08_2006.pdf

Can anyone else give a better solution?
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-27-2008, 10:04 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default
Thanks Niveditha......
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 07-10-2008, 11:43 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default
its working fine..
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 07-10-2008, 11:43 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default
is there any special commands to open a pplication such as winword
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 07-10-2008, 11:44 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default
Can anyone else give a solution?
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 07-10-2008, 11:45 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default
process = new ProcessBuilder("mspaint","yourFileName.jpeg").star t();
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 07-11-2008, 10:57 AM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 307
Rep Power: 2
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Default
Hi,
Check these links, i think it can help you...
1. JavaWorld Forums: how to open a xxx.doc(win98/2k/xp...) in java
2. New To Java - How do I open my UserDocumentation.doc kept inside the jar file.
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the last modified date of a file from a java program Java Tip java.io 0 04-04-2008 03:45 PM
Poblem in Compiling a c++ file from a java program... Amit Kr. Mishra New To Java 0 11-06-2007 11:41 AM
writing to a excel file from java program priyankabhar New To Java 1 07-10-2007 09:05 PM
Regarding conversion of Image file to Video file RamaDeviMsc Advanced Java 0 06-25-2007 03:28 PM
Simplest way to read and display a jpeg image Hasan New To Java 1 05-31-2007 04:42 PM


All times are GMT +2. The time now is 02:55 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org