<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5673912554780581063</id><updated>2024-08-29T05:52:35.691+05:30</updated><category term="Graphics"/><category term=".Net"/><category term="C#"/><category term="java imaging"/><category term="tools"/><category term="Drawing"/><category term="layout"/><category term="exe"/><category term="Exam"/><category term="GDI"/><category term="MasterPage"/><category term="jar"/><category term="java"/><category term="look and feel"/><category term="manifest"/><category term="media"/><category term="single instance"/><title type='text'>Yuva Developer</title><subtitle type='html'>Language topics, Tips, Article, help</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-766027071825252141</id><published>2011-04-06T14:34:00.000+05:30</published><updated>2011-04-06T14:34:57.504+05:30</updated><title type='text'>Chart Control in ASP.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Hi,&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here i am posting a very good example of Chart Control in ASP.Net.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/766027071825252141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2011/04/chart-control-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/766027071825252141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/766027071825252141'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2011/04/chart-control-in-aspnet.html' title='Chart Control in ASP.net'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-2003220208585957764</id><published>2010-06-21T12:39:00.010+05:30</published><updated>2010-06-22T12:51:17.622+05:30</updated><title type='text'>How to open and Edit MSoffice document from C#.Net</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Hi,&lt;br /&gt;
Lots of people asking me how to open and edit MSoffice document from C#.Net.&lt;br /&gt;
Here i am giving you the way.&lt;br /&gt;
&lt;br /&gt;
May you know all these and if have any better solution then comment me.&lt;br /&gt;
&lt;br /&gt;
1. For just launching word. ( No need to specify the path of word exe)&lt;br /&gt;
&lt;/span&gt;   &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Process.Start(&quot;Winword.exe&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. For launching word with specifying file name.&lt;br /&gt;
&lt;/span&gt;  &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Process.Start(&quot;Winword.exe&quot;, &quot;My.doc&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you want to create, edit any document file from C# Then follow these steps.&lt;br /&gt;
&lt;br /&gt;
1. &amp;nbsp;From Add reference add a COM reference.&lt;br /&gt;
2. &amp;nbsp;Select &quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Microsoft Word 11.0 Object Library&lt;/span&gt;&quot; Type lib version 8.3.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; ( It will vary upon library installed on your system)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; If you want to open and Edit Access, Excel files then add their respective libraries.&lt;br /&gt;
3. Now use the classes given by API for operating with files.&lt;br /&gt;
&lt;br /&gt;
Here is a sample for word file..&lt;br /&gt;
--------------------------------------------------------------------------------&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;using Microsoft.Office.Interop.Word;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;ApplicationClass WordApp = new ApplicationClass();&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; object _fileName = &quot;My.Doc&quot;;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; object _readOnly = false;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; object _isVisible = true;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; object missing = System.Reflection.Missing.Value;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; WordApp.Visible = true;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; //the number of parameter on open method will vary according to referenced object library version&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; Document aDoc = WordApp.Documents.Open(ref _fileName, ref missing, ref _readOnly, ref missing, ref missing, ref missing, ref missing, ref &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; missing, ref missing, ref missing, ref missing, ref _isVisible, ref missing, ref missing, ref missing, ref missing);&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;aDoc.Activate();&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
==================================================&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/2003220208585957764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/06/how-to-open-and-edit-msoffice-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2003220208585957764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2003220208585957764'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/06/how-to-open-and-edit-msoffice-document.html' title='How to open and Edit MSoffice document from C#.Net'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-3013200138689484757</id><published>2010-06-09T17:45:00.001+05:30</published><updated>2010-06-09T17:47:33.601+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exam"/><title type='text'>Free Online Exam / Certification</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Hello Friends,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;After a long time i am again here with some new topic.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Today i am giving you some Free Online Exam link which are very helpful for certification and you knowledge.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Even i am also doing the same way to update myself.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;If you have anymore link just comment me i will post over here.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;1. RankSheet:- &amp;nbsp;for .Net, java, Sql and all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://ranksheet.com/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://ranksheet.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;2. TestWorld:- for Microsoft, Cisco, Sun and all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.testsworld.com/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.testsworld.com/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;3. JavaBlackBelt:- for java and some editors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.blackbeltfactory.com/ui#TopicList&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.blackbeltfactory.com/ui#TopicList&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Thanks&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/3013200138689484757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/06/free-online-exam-certification.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/3013200138689484757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/3013200138689484757'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/06/free-online-exam-certification.html' title='Free Online Exam / Certification'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-4162494109890433097</id><published>2010-03-31T16:29:00.009+05:30</published><updated>2010-04-16T12:08:16.661+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>.Net Obfuscator for securing your source code</title><content type='html'>&lt;div&gt;Hi Everyone,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The first priority and biggest challenge for any software developer is, How to secure application from re-engineering?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;We know that the languages which are Interpreted can easily be re-engineered via Decompiler.&lt;/div&gt;&lt;div&gt;Even .Jar, .Class, .dll and .exe files can easily be decompiled which are created by Java and .Net.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;b&gt;What is Obfuscation?&lt;/b&gt;&lt;br /&gt;
Is the process of encrypting your .Net code so that it cannot be easily re-engineered.&lt;br /&gt;
It is language neutral technology even you can obfuscate java code too.&lt;br /&gt;
It is mainly used in managed languages because they can be re-engineered.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Then how to protect???&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;You can use Obfuscator for that. It just mangle your method, properties, classes and variables.&lt;/div&gt;&lt;div&gt;It means it change the name suppose your class name is Test, after obfuscator it may become ?dsghd.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;So it cannot be easily understandable after decompilation.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here i am putting some tools for protecting you code.&lt;/div&gt;&lt;div&gt;If you have anymore comment it, i will add.&lt;br /&gt;
Wait i will be posting the feedback of all the tools.(Currently i am testing with all the tools)&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.aspose.com/corporate/purchase/policies/discontinued-products.aspx&quot;&gt;Aspose.Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.metapropeller.com/&quot;&gt;Assemblur&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://alb.gibwo.com/dnn/&quot;&gt;AssemblyLockbox&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://babelobfuscator.blogspot.com/&quot;&gt;Babel&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.semdesigns.com/Products/Obfuscators/CSharpObfuscator.html&quot;&gt;C# Source   Code Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.secureteam.net/&quot;&gt;CliSecure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.vilabs.com/product/codearmorprotect.aspx&quot;&gt;CodeArmor   .NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ssware.com/cryptoobfuscator/obfuscator-net.htm&quot;&gt;Crypto Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.junglecreatures.com/DesktopDefault.aspx?tabindex=2&amp;amp;tabid=3&quot;&gt;Decompiler.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.deepseaobfuscator.com/&quot;&gt;DeepSea   Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://howtoselectguides.com/dotnet/obfuscators/#demeanorfordotnet&quot;&gt;Demeanor for   .NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.junglecreatures.com/DesktopDefault.aspx?tabindex=2&amp;amp;tabid=3&quot;&gt;Deploy.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://xheo.com/products/code-protection&quot;&gt;DeployLx CodeVeil&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.dfstack.com/&quot;&gt;DF Stack obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.dnguard.net/&quot;&gt;DNGuard HVM&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.preemptive.com/products/dotfuscator/compare-editions&quot;&gt;Dotfuscator   Community&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.preemptive.com/products/dotfuscator&quot;&gt;Dotfuscator   Professional&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://dotnetprotector.pvlog.com/Home.aspx&quot;&gt;dotNet   Protector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.foss.kharkov.ua/g1/projects/eazfuscator/dotnet/&quot;&gt;Eazfuscator.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.cantelmosoftware.com/eng/obfuscator.html&quot;&gt;Goliath .NET   Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://code.google.com/p/obfuscar/&quot;&gt;Google   Obfuscar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.eziriz.com/intellilock.htm&quot;&gt;IntelliLock&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.lesser-software.com/en/content/products/LSW%20DotNet-Tools/LSW_DotNet_IL-Obfuscator.htm&quot;&gt;LSW   IL-Obfuscator&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.macrobject.com/en/obfuscator/&quot;&gt;MicroObject &amp;nbsp;Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.eziriz.com/products.htm&quot;&gt;.NET Reactor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.sofpro.com/pcgw32.htm&quot;&gt;PC Guard for   .NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://ntcore.com/phoenix.php&quot;&gt;Phoenix   Protector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.desaware.com/products/books/net/obfuscating/index.aspx&quot;&gt;QND-Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.remotesoft.com/salamander/obfuscator.html&quot;&gt;Salamander   .NET Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.remotesoft.com/salamander/obfuscator.html&quot;&gt;Salamander   .NET Protector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sharpobfuscator.codeplex.com/&quot;&gt;SharpObfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.smrtx.com/RS/obfuscator_net.htm&quot;&gt;Skater .NET   Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.smartassembly.com/index.aspx&quot;&gt;Smartassembly&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.9rays.net/Category/55-spicesnet-obfuscator.aspx&quot;&gt;Spices.Net   Obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.vmware.com/products/thinapp/&quot;&gt;Thinstall&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.componentone.com/SuperProducts/XapOptimizer/&quot;&gt;XapOptimizer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.xenocode.com/Products/Postbuild/&quot;&gt;Xenocode obfuscator&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/4162494109890433097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/03/net-obfuscator-for-securing-your-source.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4162494109890433097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4162494109890433097'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/03/net-obfuscator-for-securing-your-source.html' title='.Net Obfuscator for securing your source code'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-6165822678601026919</id><published>2010-02-17T17:38:00.003+05:30</published><updated>2010-02-18T11:28:48.849+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>Convert Jar to Exe and Secure Java Application</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Hello Friends,&lt;br /&gt;
&lt;br /&gt;
Hope you will see my previous post regarding the same. &lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/&quot;&gt;&lt;/a&gt;&lt;span id=&quot;goog_1266406764342&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1266406764343&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://yuvadeveloper.blogspot.com/2009/03/secure-your-class-files-in-java.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Secure java files&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;a href=&quot;http://yuvadeveloper.blogspot.com/2009/03/convert-jar-files-to-exe.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Convert jar to exe&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;first of all Thanks for mailing me and your doubts.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Many people ask me question which one is best,secure and easy among them.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Actually many of them are developed on java itself.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;So some time they just change the name of jar file to exe and it looks that we made it,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;But originally you can extract it by changing its name again.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Best is use some commercial tool or Use tool which actually convert it into Win32 exe&#39;s.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;I tried Excelsior that is commercial (think made in java) and jstart32 (Made in delphi) with&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;GNU license&amp;nbsp;are tool which originally created a Win32.exe.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;go and try...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
Hope now you will feal secure.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Ask if any query or comment if you like.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Today i am posted some more tools to do so.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;1. JStart32&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://jstart32.sourceforge.net/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://jstart32.sourceforge.net/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;2. JLaunch&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.magi-au.com/download/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.magi-au.com/download/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;3. Java Launcher&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.syncedit.com/software/javalauncher/index.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.syncedit.com/software/javalauncher/index.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;4. Janel&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.redskaper.com/Janel.jsp&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.redskaper.com/Janel.jsp&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;5. BuildDesk&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.productiveme.com/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.productiveme.com/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;6. Install Anywhere&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.flexerasoftware.com/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;http://www.flexerasoftware.com/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;7. JExpress&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.denova.com/&quot;&gt;http://www.denova.com/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;8. Jar Compiler&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.tabbyinstall.com/jarc/JarCompiler.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;http://www.tabbyinstall.com/jarc/JarCompiler.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;9. Inno Setup&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.jrsoftware.org/isinfo.php&quot;&gt;http://www.jrsoftware.org/isinfo.php&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/6165822678601026919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/02/convert-jar-to-exe-and-secure-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/6165822678601026919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/6165822678601026919'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/02/convert-jar-to-exe-and-secure-java.html' title='Convert Jar to Exe and Secure Java Application'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-2658900752182936947</id><published>2010-01-30T15:51:00.005+05:30</published><updated>2010-02-02T10:55:07.275+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="MasterPage"/><title type='text'>Accessing Master Page Properties from Child Page</title><content type='html'>&amp;nbsp;Hello Friends.&lt;br /&gt;
&lt;br /&gt;
Today hot topic is that how to access properties from MasterPage into content page.&lt;br /&gt;
I think there is several methods you can access those properties or variable.&lt;br /&gt;
&lt;br /&gt;
1. By Master property of content page&lt;br /&gt;
2. By interface&lt;br /&gt;
3. By Including a MasterPage Directive in Pages.&lt;br /&gt;
&lt;br /&gt;
So here i am providing you some code stuff for the same.&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;b&gt;1. Access Master Page&amp;nbsp;properties&amp;nbsp;and Method by Master property of Page.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;Master Page Code&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt; &lt;/b&gt; &lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public string ButtonText&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get { return this.Button1.Text; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set { this.Button1.Text = value; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;b&gt; &lt;/b&gt; &lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;Child Page Code&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;//Master page is the name of master page file&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;MasterPage mast = this.Master as MasterPage;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (mast != null)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mast.ButtonText = &quot;New Text&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
-----------------------------------------------------------------------------------&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-text-decorations-in-effect: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;b&gt;2. Access Master Page&amp;nbsp;properties&amp;nbsp;and Via Interface.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;see here&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://dotnetbyexample.blogspot.com/2007/10/right-way-of-accessing-master-page.html&quot;&gt;http://dotnetbyexample.blogspot.com/2007/10/right-way-of-accessing-master-page.html&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/2658900752182936947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/accessing-master-page-properties-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2658900752182936947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2658900752182936947'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/accessing-master-page-properties-from.html' title='Accessing Master Page Properties from Child Page'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-9182886030162549028</id><published>2010-01-27T16:26:00.008+05:30</published><updated>2010-01-29T17:04:53.211+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Setting the wallpaper from C# code</title><content type='html'>&lt;div&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;Hi Friends,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;What if you want to change the wallpaper of your desktop from C#.Net. for that you have to use Unmanaged code.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;You have to import and pass parameters to function from User32 dll.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana;&quot;&gt;Here I am posting the code for performing the same.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;DllImport&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;user32.dll&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;, CharSet =&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;CharSet&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.Auto)]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;extern&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;SystemParametersInfo(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;Action,&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;Param,&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;lParam,&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;WinIni);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;call the function and pass some useful parameters like ...&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Bitmap&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;bmp&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Bitmap&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Image&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.FromFile(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;@&quot;C:\mytest.jpg&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;));&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;bmp.Save(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;MyFile.Bmp&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;ImageFormat&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.Bmp);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;SystemParametersInfo(20, 0,&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;pic.bmp&quot;, 0x1);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;The first parameter&amp;nbsp;20 is for Wallpaper&lt;br /&gt;
Third parameter is your file path as String.&lt;br /&gt;
Last is Update parameter keep it 0X1, 0X01 | 0X02 ..&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;Here you see that I am converting the jpeg file into bmp file. Because it state that image should be 24 bits, so keep in mind the change of file else no effect of this function.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cccccc; font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=yuvade-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0596006993&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/9182886030162549028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/setting-wallpaper-from-c-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/9182886030162549028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/9182886030162549028'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/setting-wallpaper-from-c-code.html' title='Setting the wallpaper from C# code'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-7184000815621919553</id><published>2010-01-20T11:33:00.008+05:30</published><updated>2010-01-29T14:58:57.167+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Handling Null value in case of value type.</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Hello friends,&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;As we can check for null values in case  of Reference type.&lt;br /&gt;
What if want to do the same with value type.&lt;br /&gt;
Here the  new feature of .net do it for you.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;? x;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;? X&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;get&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; { &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; x; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span style=&quot;font-family: &#39;Comic Sans MS&#39;;&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;Now you can check&lt;br /&gt;
if( X != null) or if  ( X == null)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Note&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;:-&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; Needed to be type cast to (int)  where need int value.&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #33cc00;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Use&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;:- Very usefull suppose you declared any field as  integer in database table.&lt;br /&gt;
And you forget to  declared default value as 0 (zero).&lt;br /&gt;
Then whenever you query  to database you get a null value so it can be used for checking  that.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/7184000815621919553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/handling-null-value-in-case-of-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/7184000815621919553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/7184000815621919553'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/handling-null-value-in-case-of-value.html' title='Handling Null value in case of value type.'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-5343340211968994891</id><published>2010-01-20T11:12:00.003+05:30</published><updated>2010-01-29T15:03:29.747+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Private setter for public getter</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Hello Friends,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Now i am showing you some very good  features of  Net 2.0 over .Net 1.0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Suppose you want to expose a public  property. So for that you have &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;public getter method but what about its setter  method.&lt;br /&gt;
from .net 2.0 tou can have a private setter for a public getter too  like this.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;  x;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; X&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;get&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; { &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; x; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt; { x =  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/5343340211968994891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/private-setter-for-public-getter.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/5343340211968994891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/5343340211968994891'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/private-setter-for-public-getter.html' title='Private setter for public getter'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-5527350394731963536</id><published>2010-01-11T11:02:00.005+05:30</published><updated>2010-01-29T15:06:44.569+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="GDI"/><title type='text'>Creating Non-Rectangular Form in C#</title><content type='html'>Hello Friends,&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now here i am trying some very good stuff on C#.net.&lt;/div&gt;&lt;div&gt;The first in this row is creating non rectangular Form in C#.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The Idea comes when i was created Magnifier as a sub part of my project.&lt;/div&gt;&lt;div&gt;When i created a rectangular magnifier it&#39;s ok but when it comes to rounded then&lt;/div&gt;&lt;div&gt;i have to think.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;From some book i get these idea (also available in many of GDI tutorials).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The idea behind this is that, GDI provides a new Class called GraphicsPath.&lt;/div&gt;&lt;div&gt;With the help of this class you can draw any closed arc, lines and shapes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;So either override onPaint event of form or Onload event put some code stuff like this.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #00cccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;System.Drawing.Drawing2D.&lt;/span&gt;GraphicsPath &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;myShape &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;=&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;new &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #00cccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;System.Drawing.Drawing2D.&lt;/span&gt;GraphicsPath&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #00cccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #00cccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;myShape&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;AddEllipse&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;(0, 0, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;.Width, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;.Height);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #00cccc;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;.Region = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;System.Drawing.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: cyan;&quot;&gt;Reg&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #d0e0e3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: cyan;&quot;&gt;ion&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;(shape);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #66ffff;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Note:-&lt;/span&gt; You are not getting region property directly in intellisence because it is the &lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;      property of control class and here this refers the control.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now in place of AddEllipse you can add any closed shape for your form.&lt;/div&gt;&lt;div&gt;Hope you enjoy....&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/5527350394731963536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/creating-non-rectangular-form-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/5527350394731963536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/5527350394731963536'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2010/01/creating-non-rectangular-form-in-c.html' title='Creating Non-Rectangular Form in C#'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-9110461548250002207</id><published>2009-10-14T13:13:00.009+05:30</published><updated>2010-02-10T16:51:55.757+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><title type='text'>Single Instance Application in C#</title><content type='html'>&lt;div class=&quot;Section1&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Hello Friends, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Today I am discussing here a very HOT topic i.e. Single Instance in C#.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; So friends, There are lots of ways to do so.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Some are very easy as 2-3 lines of code, some are big and complicated.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Just go through all of them.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Methods.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Using      Process &lt;/span&gt;&lt;/span&gt;&lt;st1:place st=&quot;on&quot;&gt;&lt;st1:city st=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Name&lt;/span&gt;&lt;/span&gt;&lt;/st1:city&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;st1:state st=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;/st1:state&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; etc&lt;/span&gt;&lt;/span&gt;&lt;/st1:place&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;By      using Mutex class&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;By      using Microsoft.VisualBasic.dll&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;By      locking or binding a file.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;By      locking a particular port.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;First Method:- &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;Using Process class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Step1&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.  Give your window form a specific unique name.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;           this.Text = “My_Application_144”;          // title name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; Step2.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;  Create a private method for checking all Process title Text.&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;      private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;bool&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; IsAnotherInstance()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (Process process &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; Process.GetProcesses())&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//give particular name same as you given above&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (process.MainWindowTitle == &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;this&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.Text)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #93c47d;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; Step3.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;  On form load method check another instance&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;             &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (!IsAnotherInstance ())&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; MessageBox.Show(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Application is Already running.&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; this&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.Close();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;I will disscuss other method next time.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;==================================================&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #8e7cc3;&quot;&gt;2. Using Mutex Class &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; [&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;STAThread&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; static&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;st1:place w:st=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Main&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/st1:place&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;bool&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; isNew = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;using&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Mutex&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; mutex = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Mutex&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;MyApplicationName&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;out&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; isNew))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (isNew)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Application&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.EnableVisualStyles();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Application&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.SetCompatibleTextRenderingDefault(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Application&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.Run(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Form1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;MessageBox&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.Show(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Already running&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/9110461548250002207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/10/single-instance-application-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/9110461548250002207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/9110461548250002207'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/10/single-instance-application-in-c.html' title='Single Instance Application in C#'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-4093944419894462168</id><published>2009-10-10T15:37:00.001+05:30</published><updated>2009-10-10T15:39:46.507+05:30</updated><title type='text'>Question Related to .Net Technology.</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hello Friends,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now i am going to post some of very good question and Article regarding .Net.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/4093944419894462168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/10/question-related-to-net-technology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4093944419894462168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4093944419894462168'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/10/question-related-to-net-technology.html' title='Question Related to .Net Technology.'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-4249400145311848421</id><published>2009-04-08T10:53:00.007+05:30</published><updated>2010-02-01T17:59:31.871+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Graphics"/><category scheme="http://www.blogger.com/atom/ns#" term="java imaging"/><title type='text'>Convert Colored Images to Black And white in java</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;Sometime you want to convert colored images to black and white.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;Here i am giving you the simple method to do so.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;Just see below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//example for coverting colored image to black and white&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.awt.image.*;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; javax.imageio.ImageIO;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.io.*;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.awt.*;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; BlackAndWhite&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; main(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; asr[])&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//colored image path&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedImage image = ImageIO.read(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;File&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;D:\\MyProgram\\output.jpg&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//getting width and height of image&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; image_width = image.getWidth();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; image_height = image.getHeight();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedImage bimg = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedImage img = image;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//drawing a new image&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bimg = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; BufferedImage((&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)image_width, (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)image_height,&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;BufferedImage.TYPE_BYTE_GRAY);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphics2D gg = bimg.createGraphics();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gg.drawImage(img, 0, 0, img.getWidth(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;), img.getHeight(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//saving black and white image onto drive&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; temp = &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;blackAndwhite.jpeg&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;File&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; fi = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;File&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;D:\\My Program\\&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; + temp);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImageIO.write(bimg, &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;jpg&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;, fi);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; e)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(e);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/4249400145311848421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/04/convert-colored-images-to-black-and.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4249400145311848421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4249400145311848421'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/04/convert-colored-images-to-black-and.html' title='Convert Colored Images to Black And white in java'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-3851879313055240170</id><published>2009-03-31T12:39:00.011+05:30</published><updated>2010-02-01T18:05:12.904+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Graphics"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Dashed line drawing in java graphics.</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;Hello Friends,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&amp;nbsp;While working in my project i was searching how to draw a dashed line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;in Graphics not in Graphics2D.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;So i get this code and it is superb for drawing dash lines or rectangulars.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;Just pass the line points and assign your dash length and space length.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;See the below function........&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;////pass the line point x1,y1 and point 2 as x2 and y2&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; drawDashedLine(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Graphics&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; g, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; x1, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; y1, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; x2,&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; y2, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; dash_length, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; space_length)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;///if both the points are same&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; ((x1 == x2) &amp;amp;&amp;amp; (y1 == y2))&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.drawLine(x1, y1, x2, y2);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;///calculating line length&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; linelength = &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Math&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; yincrement = (y2 - y1) / (linelength / (dash_length + space_length));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; xincdashspace = (x2 - x1) / (linelength / (dash_length + space_length));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; yincdashspace = (y2 - y1) / (linelength / (dash_length + space_length));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; xincdash = (x2 - x1) / (linelength / (dash_length));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; yincdash = (y2 - y1) / (linelength / (dash_length));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; counter = 0;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;double&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; i = 0; i &amp;lt; linelength - dash_length; i += dash_length + space_length)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.drawLine((&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)(x1 + xincdashspace * counter),&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)(y1 + yincdashspace * counter),&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)(x1 + xincdashspace * counter + xincdash),&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)(y1 + yincdashspace * counter + yincdash));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter++;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; ((dashlength + spacelength) * counter &amp;lt;= linelength)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.drawLine((&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)(x1 + xincdashspace * counter),&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)(y1 + yincdashspace * counter), x2, y2);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;background: #CFE2F3; color: #444444; font-family: Verdana; font-size: 10.0pt;&quot;&gt;=============================================&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/3851879313055240170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/dashed-line-drawing-in-java-graphics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/3851879313055240170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/3851879313055240170'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/dashed-line-drawing-in-java-graphics.html' title='Dashed line drawing in java graphics.'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-2637424440658652497</id><published>2009-03-18T13:51:00.021+05:30</published><updated>2010-02-01T18:10:34.559+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="exe"/><title type='text'>Closing command prompt from JAVA</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;&quot;&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Many times developer ask question how to close command prompt after&lt;br /&gt;
launching the application?&lt;br /&gt;
or&lt;br /&gt;
How to exit from batch file after execution.&lt;br /&gt;
&lt;br /&gt;
Here is all possible ways to do so.&lt;br /&gt;
1. Use javaw.exe for launching your application and exit.&lt;br /&gt;
2. Create an executable jar file so that just double clicks for launch.&lt;br /&gt;
3. Create exe from jar files.&lt;br /&gt;
&lt;br /&gt;
If you want to exit from command prompt after calling your exe file.&lt;br /&gt;
Then apply the same concept which we are using for tracing output&lt;br /&gt;
from exe.(see previous post)&lt;br /&gt;
&lt;br /&gt;
Technique:-&lt;br /&gt;
1. You have to insert a line on your code which print &quot;Loaded&quot; on output.&lt;br /&gt;
2. Crate a jar file then exe from jar file.&lt;br /&gt;
3. Again make a java file for launching your exe file.&lt;br /&gt;
4. Get the InputStreamReader from your process.&lt;br /&gt;
5. Check for string &quot;Loaded&quot; on output.&lt;br /&gt;
6. If you get &quot;Loaded&quot; then exit.&lt;br /&gt;
&lt;br /&gt;
See the full source code.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;/* Program for closing a command prompt from a executable&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;* Copyright 2009 @ yuvadeveloper&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;* Code By:- &lt;/span&gt;&lt;st1:personname w:st=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Prashant  Chandrakar&lt;/span&gt;&lt;/st1:personname&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;*/&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.io.*;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; javax.swing.JOptionPane;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.net.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BindException&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; Loader&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; main(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; as[])&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;Loading application.........&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//pass the name of your exe in place of my.exe&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Process&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; p = &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Runtime&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.getRuntime().exec(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;my.exe&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//getting inputstream reader from process&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; reader = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BufferedReader&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (newInputStreamReader(p.getInputStream()));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; line = reader.readLine();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//exit from this class when get &quot;Loaded&quot; from your application&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;while&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (line.equals(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;Loaded&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;line = reader.readLine();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;reader.close();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; e)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;&quot;&gt;&lt;br /&gt;
call exe from a batch file like...&lt;br /&gt;
java Loader&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/2637424440658652497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/closing-command-prompt-from-java_18.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2637424440658652497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2637424440658652497'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/closing-command-prompt-from-java_18.html' title='Closing command prompt from JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-6239722811963249090</id><published>2009-03-18T12:41:00.007+05:30</published><updated>2010-02-01T17:53:38.413+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="exe"/><title type='text'>Tracing output from Exe in JAVA</title><content type='html'>&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Hello Everyone,&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Suppose you are creating a exe files from you jar files.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;So while running how to trace the output of application.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Here i am putting very small code to do so.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;The idea behind this is make a object of process and execute a exe from runtime object.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;get a inputstream reader from process.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Then trace the output.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Just see below.&lt;/span&gt;&lt;span style=&quot;font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;* Program for tracing a output from a executable&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;* Copyright 2009 @ yuvadeveloper&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;* Code By:- &lt;/span&gt;&lt;st1:personname w:st=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Prashant  Chandrakar&lt;/span&gt;&lt;/st1:personname&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: green; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;*/&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.io.*;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; javax.swing.JOptionPane;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.net.&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BindException&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; Loader&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; main(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; as[])&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//pass the name of your exe in place of my.exe&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Process&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; p = &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Runtime&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.getRuntime().exec(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;DicomViewer.exe&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//getting inputstream reader from process&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; reader = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InputStreamReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(p.getInputStream()));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; line = reader.readLine();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;while&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (line != &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line = reader.readLine();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(line);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reader.close();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; e)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Mangal; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: Mangal; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/6239722811963249090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/tracing-exe-output-from-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/6239722811963249090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/6239722811963249090'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/tracing-exe-output-from-java.html' title='Tracing output from Exe in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-2329458255333712970</id><published>2009-03-09T17:17:00.007+05:30</published><updated>2010-02-01T17:57:09.338+05:30</updated><title type='text'>Reading command Line Input in JAVA</title><content type='html'>&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Developers migrating from c++ to java are first think of how&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;to pass command line input to java application or how to read command&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;line input in JAVA.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;I am also worried on my early days of learning java.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;So friends here I have some example to do so.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;We can use BufferedReader class for that.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;--------------------------------------------------------------------------------&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.io.*;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; ReadString&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; main(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;[] args)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//&amp;nbsp; prompt the user to enter their name &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.print(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;Enter your name: &quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//&amp;nbsp; open up standard input &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; br = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InputStreamReader&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.in));&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; userName = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;//&amp;nbsp; read the username from the command-line&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userName = br.readLine();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;catch&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; e)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(e);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;UserName =&amp;nbsp; &quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; + userName);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Verdana; font-size: 10.0pt;&quot;&gt;======================================&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;Java 5.0 gives a new feature for reading inputs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;They launch java.uti.Scanner class, it gives more flexibility for reading&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;a input.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;You can read from any file or you can search by a particular pattern.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; java.util.Scanner;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; InputTest&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; main(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; as[])&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; name = &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; age = 0;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Scanner sc = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; Scanner(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.in);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = sc.nextLine();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age = sc.nextInt();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sc.close();&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;Name :-&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; + name);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;System&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;.out.println(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&quot;Age :-&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt; + age);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Courier New&amp;quot;; mso-no-proof: yes;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #cfe2f3;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10.0pt;&quot;&gt;=======================================&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/2329458255333712970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/reading-command-line-input-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2329458255333712970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/2329458255333712970'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/reading-command-line-input-in-java.html' title='Reading command Line Input in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-4273698299601395051</id><published>2009-03-09T11:27:00.006+05:30</published><updated>2009-07-27T16:37:11.113+05:30</updated><title type='text'>Reading Command Promt Output from JAVA</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;Hello Friends,&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;If sometimes you need reading a cmd.exe&#39;s output in java.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Here i am putting the code for doing that.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;It is based on Buffered Readers&#39;s readLine() method.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;But the point of attention is how to get your exe&#39;s InputStream.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;See the snapshot in example i am reading a drive name from cmd.exe.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;for the source code see below&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-family:&#39;times new roman&#39;;&quot;&gt;&lt;span style=&quot;font-size:85%;color:#008000;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Verdana;color:#CCCCFF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;color: rgb(0, 0, 0);   line-height: normal; font-family:&#39;times new roman&#39;;font-size:16px;&quot;&gt;&lt;span style=&quot;font-size:85%;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Verdana;color:#CCCCFF;&quot;&gt;&lt;span style=&quot;font-size:85%;color:#008000;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;/*&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* Program for reading a command prompt output from java&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* Copyright 2009 @ yuvadeveloper&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* Code By:- Prashant Chandrakar&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;*&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; java.io.*;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; cmdReader&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    public&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; main(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; arg[])&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        new&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; test().setup();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; setup()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        System&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.out.println(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Testing getVolName&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;color:#008000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;////drive which name to be read&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        String&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; path = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;D:&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        System&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.out.println(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Volume name for &quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; + path + &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot; is: &quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; + &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;&#39;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; + getDiskVolumeName(path) + &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;&#39;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    public&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; getDiskVolumeName(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; path)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        String&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; volname = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Unknown&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        String&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; check = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Volume in drive &quot;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; + path.charAt(0) + &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot; is &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;         {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            //creating a process object and calling a cmd.exe with /c dir option&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            Process&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; p = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Runtime&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.getRuntime().exec(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;cmd /c dir &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; + path);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            //getting input stream from a process&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            InputStreamReader&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; is = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;InputStreamReader&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;(p.getInputStream());&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;color:#008000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;//creating a buffered reader object for reading purpose&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; reader = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;BufferedReader&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;(is);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;color:#008000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;///reading a line&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            String&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; line = reader.readLine();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            while&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (line != &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;                //getting substring for drive name&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color:#008000;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;                if&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (line.indexOf(check) != -1)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;                    volname = line.substring(line.indexOf(check) + check.length());&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;                line = reader.readLine();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        catch&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; e1)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            System&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.out.println(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Failure: &quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; + e1.toString());&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        return&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; volname;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;color:#008000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Verdana;color:#CCCCFF;&quot;&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;border-collapse: separate; color: rgb(0, 0, 0);   font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-family:&#39;times new roman&#39;;font-size:13px;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Here below i am pointed the read text.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Snapshot:- &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT6w5AOsqBoncoPEd5BHPQrgWv1czf5ss7uaYsvpoSFWB_ww0pu_XPbGLU419TxkfPBJFIk7IHVbWyB_YnlX7FWSuXZqLcGwLNwcWt7Rn2RqC0hyAny9v_3IHTPL1f81w5LJ24dsJkFeJJ/s320/cmdSnap.PNG&quot; style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 160px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5311102792667719090&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/4273698299601395051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/reading-command-promt-output-from-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4273698299601395051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4273698299601395051'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/reading-command-promt-output-from-java.html' title='Reading Command Promt Output from JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT6w5AOsqBoncoPEd5BHPQrgWv1czf5ss7uaYsvpoSFWB_ww0pu_XPbGLU419TxkfPBJFIk7IHVbWyB_YnlX7FWSuXZqLcGwLNwcWt7Rn2RqC0hyAny9v_3IHTPL1f81w5LJ24dsJkFeJJ/s72-c/cmdSnap.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-3023305518083157565</id><published>2009-03-06T18:40:00.007+05:30</published><updated>2009-07-27T16:33:19.390+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="jar"/><category scheme="http://www.blogger.com/atom/ns#" term="manifest"/><title type='text'>Reading custom field from Manifest file in JAVA</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Hi EveryOne,&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;If your PM tell you declare a version number for your application.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;And if you declared application version number as constant in source code.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Then what happens when your application update and version number should be change?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;What will you do, again change in source code, then compile, then create jar etc?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;It is not just a case where your constant need to update.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;i have a solution.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Just add a field on manifest file. And read these fields from your code.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Here i am putting a example code to do so.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;It is very easy. You can read all fields from manifest.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;For source code see below.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: &#39;times new roman&#39;; &quot;&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia;color:#999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Verdana;font-size:100%;color:#CCCCFF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: &#39;times new roman&#39;; font-size: 16px; line-height: normal; &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia;color:#999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Verdana;font-size:100%;color:#CCCCFF;&quot;&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;/*&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* Program for reading a field from manifest file&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* Copyright 2009 @ yuvadeveloper&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* Code By:- Prashant Chandrakar&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;*&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* */&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;import&lt;/span&gt; java.io.*;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;import&lt;/span&gt; java.util.*;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;import&lt;/span&gt; java.util.jar.*;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;import&lt;/span&gt; java.net.*;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;class&lt;/span&gt; JarRead&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; main(&lt;span style=&quot;color:#008080;&quot;&gt;String&lt;/span&gt;[] args) &lt;span style=&quot;color:#0000ff;&quot;&gt;throws&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;    {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        new&lt;/span&gt; JarRead().call();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;    }&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;font-size:85%;color:#0000ff;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; call()&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;    {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#0000ff;&quot;&gt;        try&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;        {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;       &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;         ////pass your jar file name which included manifest file&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;            JarFile jf = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; JarFile(&lt;span style=&quot;color:#800000;&quot;&gt;&quot;CDViewer.jar&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;           &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;         ////getting manifest file from jar file&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            Manifest m = jf.getManifest();&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;         ////getting all attribute from manifest file&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            Attributes attr = m.getMainAttributes();&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;            ////taking values from manifest file.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;            ////existing field&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;            String&lt;/span&gt; SOFTWARE_VERSION = attr.getValue(Attributes.Name.IMPLEMENTATION_VERSION); &lt;span style=&quot;color:#008000;&quot;&gt;// 2.0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;            String&lt;/span&gt; SOFTWARE_VENDOR = attr.getValue(Attributes.Name.IMPLEMENTATION_VENDOR); &lt;span style=&quot;color:#008000;&quot;&gt;// YuvaDevelopers Pvt.Ltd.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;            String&lt;/span&gt; SOFTWARE_VENDOR_TITLE = attr.getValue(Attributes.Name.IMPLEMENTATION_TITLE); &lt;span style=&quot;color:#008000;&quot;&gt;// ManifestReader&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;       &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;         ////custom defined field&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;            String&lt;/span&gt; dType = attr.getValue(&lt;span style=&quot;color:#800000;&quot;&gt;&quot;RunType&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;            System&lt;/span&gt;.out.println(SOFTWARE_VERSION + &lt;span style=&quot;color:#800000;&quot;&gt;&quot;\n&quot;&lt;/span&gt; + SOFTWARE_VENDOR + &lt;span style=&quot;color:#800000;&quot;&gt;&quot;\n&quot;&lt;/span&gt; + SOFTWARE_VENDOR_TITLE + &lt;span style=&quot;color:#800000;&quot;&gt;&quot;\n&quot;&lt;/span&gt; + dType);&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;        }&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        catch&lt;/span&gt;(&lt;span style=&quot;color:#008080;&quot;&gt;Exception&lt;/span&gt; e)&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;        {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#008080;&quot;&gt;            System&lt;/span&gt;.out.println(e);&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;        }&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;    }&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia;color:#999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Verdana;font-size:100%;color:#CCCCFF;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;Manifest file:-&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); font-weight: bold;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Manifest-Version: 1.2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Main-Class: JarRead&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Created-By: 1.4 (Sun Microsystems Inc.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Specification-Title: build57&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Specification-Version: 1.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Specification-Vendor: Sun Microsystems, Inc.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Implementation-Title: Manifest Reader&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Implementation-Version: 1.0.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;Implementation-Vendor: YuvaDevlopers Pvt.Ltd.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;RunType: Customfield&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Just save as manifest.mf file and add while creating jar file.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/3023305518083157565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/reading-custom-field-from-manifest-file.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/3023305518083157565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/3023305518083157565'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/reading-custom-field-from-manifest-file.html' title='Reading custom field from Manifest file in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-4185108548082815675</id><published>2009-03-04T13:02:00.017+05:30</published><updated>2010-02-17T13:04:02.211+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>Secure your class files in JAVA</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_vnSy44pMsLS-bPyCBPllYIwWGaZYlQXGS9dca9YvwxqnMFGM8-JDQBz6uYl880OTBXqa7ScUqdgiX9NAtkECH2hBheY6NiLfgf8zvFdvoDZF63h3vOKOjTBRICF50_avJ9JVLz0Os-0M/s1600-h/lock.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5309249263709425666&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_vnSy44pMsLS-bPyCBPllYIwWGaZYlQXGS9dca9YvwxqnMFGM8-JDQBz6uYl880OTBXqa7ScUqdgiX9NAtkECH2hBheY6NiLfgf8zvFdvoDZF63h3vOKOjTBRICF50_avJ9JVLz0Os-0M/s320/lock.png&quot; style=&quot;cursor: hand; cursor: pointer; float: left; height: 128px; margin: 0 10px 10px 0; width: 128px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;Hello Friends,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; As you seen in my previous post, there I had posted too many tools that re-engineer &amp;nbsp;your class files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;So today&#39;s java developer most worried question is how to secure class files to become reverse Engineering.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;Don&#39;t Worry friends,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;There are too many tools to protect your class files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;There are many methods to protect your class files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;Obfuscator&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;Manglers&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;jar To Executer&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Obfuscator:-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;The technique behind Obfuscator is they encode your class files with certain encryption algorithm and while execution your application they again decoded or decrypted.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;So other than obfuscator know body knows which encryption algorithm is used for encoding so you are unable to decode the class files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;I have used many of them and believe me they are very good.&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;1. JShrink&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.e-t.com/jshrink.html&quot;&gt;http://www.e-t.com/jshrink.html&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;       2. BLOAT&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://sss.cs.purdue.edu/?&quot;&gt;http://sss.cs.purdue.edu/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;      3. Dash O&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.preemptive.com/dasho-java-obfuscator.html?&quot;&gt;http://www.preemptive.com/dasho-java-obfuscator.html?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;      4. JARG&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/jarg/?&quot;&gt;http://sourceforge.net/projects/jarg/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;      5. JAX&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.alphaworks.ibm.com/tech/JAX?&quot;&gt;http://www.alphaworks.ibm.com/tech/JAX?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;div&gt;6. Jcloak&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.force5.com/JCloak/ProductJCloak.html?&quot;&gt;http://www.force5.com/JCloak/ProductJCloak.html?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;7.&amp;nbsp;JODE&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://jode.sourceforge.net/&quot;&gt;http://jode.sourceforge.net/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;8.&amp;nbsp;Zelix Klass Master&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.zelix.com/klassmaster/?&quot;&gt;http://www.zelix.com/klassmaster/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;9.&amp;nbsp;Marvin&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://drjava.de/obfuscator/?&quot;&gt;http://drjava.de/obfuscator/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;10.&amp;nbsp;ProGuard&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://proguard.sourceforge.net/?&quot;&gt;http://proguard.sourceforge.net/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;11.&amp;nbsp;RetroGuard&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.retrologic.com/?&quot;&gt;http://www.retrologic.com/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;12.&amp;nbsp;Shroudit&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.lnk.com/products.htm?#shroudit&quot;&gt;http://www.lnk.com/products.htm?#shroudit&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;13.&amp;nbsp;Smokescreen&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.leesw.com/?&quot;&gt;http://www.leesw.com/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;14. Saffeine&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.saffeine.com/?&quot;&gt;http://www.saffeine.com/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;15.&amp;nbsp;Code Shield&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.codingart.com/codeshield.html?&quot;&gt;http://www.codingart.com/codeshield.html?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;16.&amp;nbsp;Java Guard&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/javaguard/?&quot;&gt;http://sourceforge.net/projects/javaguard/?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;17.&amp;nbsp;yGuard&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.yworks.com/en/products_yguard_about.htm?&quot;&gt;http://www.yworks.com/en/products_yguard_about.htm?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;18.&amp;nbsp;Jobfuscator&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.duckware.com/jobfuscate/index.html&quot;&gt;http://www.duckware.com/jobfuscate/index.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;19.&amp;nbsp;Jasob&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.jasob.com/&quot;&gt;http://www.jasob.com/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee;&quot;&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;20. Crema&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;Not found&lt;/div&gt;&lt;div&gt;21.&amp;nbsp;Hashjava&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;Not found&lt;br /&gt;
22. Allatori&lt;br /&gt;
&lt;a href=&quot;http://www.allatori.com/&quot;&gt;http://www.allatori.com/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Manglers:-&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;There are also some Manglers available which mangle your class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;files code.&amp;nbsp;It is also protect your classes but up to certain limit.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;It applies the technique of mangling function, variable names, class&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;names,&amp;nbsp;interface name&amp;nbsp;etc.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;Below is the list of Manglers.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;     1. Mangle-it&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;a href=&quot;http://www.download3k.com/Software-Development/Editors-Tools/Download-Mangle-It-Java-Source-Code-Obfuscator.html&quot;&gt;http://www.download3k.com/Software-Development/Editors-Tools/Download-Mangle-It-Java-Source-Code-Obfuscator.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;       2. jmangler&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;a href=&quot;http://www.elegant-software.com/software/jmangle/&quot;&gt;http://www.elegant-software.com/software/jmangle/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0000ee; text-decoration: underline;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Jar To Exe :-&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Just make a jar file from your class files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;And make exe file from your jar file.For creating exe from jar files please refer my previous post there i had posted number of tools for that.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;a href=&quot;http://yuvadeveloper.blogspot.com/2009/03/convert-jar-files-to-exe.html&quot;&gt;http://yuvadeveloper.blogspot.com/2009/03/convert-jar-files-to-exe.html&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/4185108548082815675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/secure-your-class-files-in-java.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4185108548082815675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/4185108548082815675'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/secure-your-class-files-in-java.html' title='Secure your class files in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_vnSy44pMsLS-bPyCBPllYIwWGaZYlQXGS9dca9YvwxqnMFGM8-JDQBz6uYl880OTBXqa7ScUqdgiX9NAtkECH2hBheY6NiLfgf8zvFdvoDZF63h3vOKOjTBRICF50_avJ9JVLz0Os-0M/s72-c/lock.png" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-7260400684824994766</id><published>2009-03-03T16:03:00.011+05:30</published><updated>2009-03-07T12:21:26.067+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>Java Decompilers (.class to .java file)</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAeVR5cI3iv1tgUajIsmPUtm7lMOJHpYFLe7EuBbpJ6N40uNtJ58aI8hduxQjNIc3mGyxe-hiF9U-LwHXfKxrUD2uTK5Zb4uNrgPbgTy3Z98EcR7paYlTF1VMeQi-eURTcB1XvpYyCLhjT/s1600-h/login_welcome_thumb.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 120px; height: 112px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAeVR5cI3iv1tgUajIsmPUtm7lMOJHpYFLe7EuBbpJ6N40uNtJ58aI8hduxQjNIc3mGyxe-hiF9U-LwHXfKxrUD2uTK5Zb4uNrgPbgTy3Z98EcR7paYlTF1VMeQi-eURTcB1XvpYyCLhjT/s320/login_welcome_thumb.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5310334016018470162&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Hello friends,&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Its a very sensational news for all who dont know how to convert .class files to .java files or decompilation of class files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Sometime we need to decompile our class files back to java source files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;So which are the tools available?&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Don&#39;t worry friends probably i have list of all the decompilers available in market.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;If i forget any tool or you have any idea other than these please share with me.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;I test many of the tools and some of having certain limitation.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;See below is the list of all the decompilers.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;The first three are very demanded in market and they are very good too.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;     &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;1. JODE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;&lt;a href=&quot;http://jode.sourceforge.net/&quot;&gt;http://jode.sourceforge.net/&lt;/a&gt;&lt;/span&gt;&lt;a href=&quot;http://jode.sourceforge.net/&quot;&gt; &lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;2. Mocha&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.brouhaha.com/~eric/software/mocha/&quot;&gt;http://www.brouhaha.com/~eric/software/mocha/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;3. DJ&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://members.fortunecity.com/neshkov/dj.html&quot;&gt;http://members.fortunecity.com/neshkov/dj.html&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;4. cavaj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.bysoft.se/sureshot/cavaj/&quot;&gt;http://www.bysoft.se/sureshot/cavaj/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;5. JAVA   Decompiler(JD)&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://java.decompiler.free.fr/&quot;&gt;http://java.decompiler.free.fr/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;6. SourceTech&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.sothink.com/product/javadecompiler/?&quot;&gt;http://www.sothink.com/product/javadecompiler/?&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;7. HomeBrew&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.pdr.cx/projects/hbd/?&quot;&gt;http://www.pdr.cx/projects/hbd/?&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;8. Jdec&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://jdec.sourceforge.net/&quot;&gt;http://jdec.sourceforge.net/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;9. Dava&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.sable.mcgill.ca/dava/&quot;&gt;http://www.sable.mcgill.ca/dava/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;10. JreversePro&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://jreversepro.blogspot.com/&quot;&gt;http://jreversepro.blogspot.com/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;11. class Cracker&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://mayon.actewagl.net.au/index.html&quot;&gt;http://mayon.actewagl.net.au/index.html&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;12. JADO&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/dcompiler&quot;&gt;http://sourceforge.net/projects/dcompiler&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;13. Jasmine   Decompiler&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.jreveal.org/&quot;&gt;http://www.jreveal.org/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;14. SourceAgain&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.ahpah.com/products.html&quot;&gt;http://www.ahpah.com/products.html&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;15. Jascii&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.zdnet.com.au/downloads/0,139024478,10227092s,00.htm&quot;&gt;http://www.zdnet.com.au/downloads/0,139024478,10227092s,00.htm&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.download.com/jAscii/3000-2213_4-10227093.html&quot;&gt;http://www.download.com/jAscii/3000-2213_4-10227093.html&lt;/a&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://asia.cnet.com/downloads/pc/swinfo/0,39000587,50002586r-39063864s,00.htm&quot;&gt;http://asia.cnet.com/downloads/pc/swinfo/0,39000587,50002586r-39063864s,00.htm&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;td height=&quot;17&quot; class=&quot;xl24&quot; width=&quot;495&quot; style=&quot;height: 12.75pt; width: 371pt; &quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;16. JADClipse&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/jadclipse/?&quot;&gt;http://sourceforge.net/projects/jadclipse/?&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;17. bytecoding&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://sourceforge.net/projects/bytecoding/?&quot;&gt;http://sourceforge.net/projects/bytecoding/?&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;18. javad&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.bearcave.com/software/java/javad/index.html&quot;&gt;http://www.bearcave.com/software/java/javad/index.html&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(85, 26, 139); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;       &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;div&gt;===============================================&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;         &lt;/span&gt;    &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;  &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;Online Tools&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;-----------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;19. Online DEC&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.tigernt.com/tools/Java/index.shtml?&quot;&gt;http://www.tigernt.com/tools/Java/index.shtml?&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;div&gt;===============================================&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;       &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;Old Tools (May Link Broken)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;------------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;20. JAD&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.kpdus.com/jad/winnt/jadnt158.zip&quot;&gt;http://www.kpdus.com/jad/winnt/jadnt158.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(85, 26, 139); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;21. WingDis &lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://www.wingsoft.com/&quot;&gt;http://www.wingsoft.com/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;22. DejaVu&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;23. class Spy&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;24. NMI&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/7260400684824994766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/java-decompilers-class-to-java-file.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/7260400684824994766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/7260400684824994766'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/java-decompilers-class-to-java-file.html' title='Java Decompilers (.class to .java file)'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAeVR5cI3iv1tgUajIsmPUtm7lMOJHpYFLe7EuBbpJ6N40uNtJ58aI8hduxQjNIc3mGyxe-hiF9U-LwHXfKxrUD2uTK5Zb4uNrgPbgTy3Z98EcR7paYlTF1VMeQi-eURTcB1XvpYyCLhjT/s72-c/login_welcome_thumb.jpg" height="72" width="72"/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-1538071953323874762</id><published>2009-03-02T12:24:00.017+05:30</published><updated>2009-03-07T12:21:47.250+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>Convert JAR files to EXE</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq80737mpCZbxlZUinBkv7YywTV7cKHEHm_BTjJTuW5TZyxpl9Obh-MRlpFkDaHVYTQhSFb40389N163BL-ipwqHJwYZyyDsOwKTNN_4ONvjKQxfgLSyb-TmymtGo4UpxtQwkJGzlsD8y-/s1600-h/Thumbtools.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 130px; height: 97px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq80737mpCZbxlZUinBkv7YywTV7cKHEHm_BTjJTuW5TZyxpl9Obh-MRlpFkDaHVYTQhSFb40389N163BL-ipwqHJwYZyyDsOwKTNN_4ONvjKQxfgLSyb-TmymtGo4UpxtQwkJGzlsD8y-/s320/Thumbtools.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5310334306123950018&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Hello Everyone,&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;The most worried things in java world is how to save your code from decoding.&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;As you all know that there are certain tools which decode or convert your .class file code to .java files.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;So how can you save your code.Solution is make a exe or Executable for windows user.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;If you want for window OS then here i am listing all the tool for converting jar files to exe Executable.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;These tools are also used for deployment purpose or setup maker.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;I used many of them and they are superb.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;1. Excelsior JET&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.excelsior-usa.com/jet.html&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.excelsior-usa.com/jet.html&quot;&gt;http://www.excelsior-usa.com/jet.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;2. JSmooth&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;a href=&quot;http://jsmooth.sourceforge.net/&quot;&gt;http://jsmooth.sourceforge.net/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;3. Launch4j&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://launch4j.sourceforge.net/&quot;&gt;http://launch4j.sourceforge.net/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;4. Install4j&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.ej-technologies.com//products/install4j/overview.html&quot;&gt;http://www.ej-technologies.com//products/install4j/overview.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;5. Exe4j&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.ej-technologies.com/products/exe4j/overview.html&quot;&gt;http://www.ej-technologies.com/products/exe4j/overview.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;6. IzPack&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://izpack.org/&quot;&gt;http://izpack.org/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;7. JExecreater&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.ucware.com/jexec/index.htm&quot;&gt;http://www.ucware.com/jexec/index.htm&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;8. ExeJ&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.sureshotsoftware.com/exej/&quot;&gt;http://www.sureshotsoftware.com/exej/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;9. Executer&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://mpowers.net/executor/&quot;&gt;http://mpowers.net/executor/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;10. Jar2Exe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.regexlab.com/en/jar2exe/&quot;&gt;http://www.regexlab.com/en/jar2exe/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(85, 26, 139); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;11. Advace Installer&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.advancedinstaller.com/&quot;&gt;http://www.advancedinstaller.com/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153); &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;12. JExePack&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.duckware.com/jexepack/index.html&quot;&gt;http://www.duckware.com/jexepack/index.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;13. Xenoage&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.xenoage.com/jestart.html&quot;&gt;http://www.xenoage.com/jestart.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;14. NativeJ&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;a href=&quot;http://www.dobysoft.com/products/nativej/&quot;&gt;http://www.dobysoft.com/products/nativej/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(85, 26, 139); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt; 15. JNC&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://jnc.mtsystems.ch/&quot;&gt; http://jnc.mtsystems.ch/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/1538071953323874762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/convert-jar-files-to-exe.html#comment-form' title='34 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/1538071953323874762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/1538071953323874762'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/03/convert-jar-files-to-exe.html' title='Convert JAR files to EXE'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq80737mpCZbxlZUinBkv7YywTV7cKHEHm_BTjJTuW5TZyxpl9Obh-MRlpFkDaHVYTQhSFb40389N163BL-ipwqHJwYZyyDsOwKTNN_4ONvjKQxfgLSyb-TmymtGo4UpxtQwkJGzlsD8y-/s72-c/Thumbtools.jpg" height="72" width="72"/><thr:total>34</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-1471692681436150011</id><published>2009-02-28T13:11:00.008+05:30</published><updated>2009-07-27T16:32:09.885+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="layout"/><title type='text'>Layout Managers in JAVA</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Hi friends,&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;   While setting Layout in JAVA application, everyone is just&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;   thinking of some common layouts. They are...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;FlowLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;BorderLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;GridLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;GridBagLayout&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Card Layout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;Null Layout or Absolute Positioning.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;   But they all are belongs to Java.awt.classes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;   But Swing introduces some of very new and intresting types of&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;   layouts.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;  They are...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;BoxLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;GroupLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;OverlayLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;SpringLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;ScrollPaneLayout&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;ViewPortLayout&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt; So friends here i am discussing about all.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#999999;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/1471692681436150011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/02/differents-layout-manager-in-java.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/1471692681436150011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/1471692681436150011'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/02/differents-layout-manager-in-java.html' title='Layout Managers in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-6539983696616915014</id><published>2009-02-28T12:44:00.012+05:30</published><updated>2010-02-01T13:57:31.062+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="layout"/><title type='text'>Null Layout or Absolute Positioning in JAVA</title><content type='html'>&lt;div&gt;Hi freinds,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;    Most of the time every developer is thinking which layout is to be set.&lt;/div&gt;&lt;div&gt;    So that all the added component (like button,Text box etc.) can not&lt;/div&gt;&lt;div&gt;    affect while resizing the JFrame or their container.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;    So we that there are number of layout to do so.&lt;/div&gt;&lt;div&gt;    And for many of the users GridBagLayout is best for their work.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;    But many of the user also feel that it is some difficult and takes too&lt;/div&gt;&lt;div&gt;    much lines to code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;   So my dear friend use NullLayout which kept is sort and sweet.&lt;/div&gt;&lt;div&gt;   On this layout you can easily choose X, Y  postion and also width and &lt;/div&gt;&lt;div&gt;   height of your particular component.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;   See the snapshot you can also put button overlapping.&lt;/div&gt;&lt;div&gt;   Same as other component.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;   It is not a Layout Manager and not need to add like others.&lt;/div&gt;&lt;div&gt;   just setLayout(null); will add this to your component.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;   I am created a very simple application which implement this method.&lt;/div&gt;&lt;div&gt;   just go  through it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;   For source code see below&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;times new roman&#39;;&quot;&gt;&lt;span style=&quot;color: green; font-size: 85%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;times new roman&#39;;&quot;&gt;&lt;span style=&quot;color: green; font-size: 85%;&quot;&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ccccff; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: &#39;times new roman&#39;; font-size: 16px; line-height: normal;&quot;&gt;&lt;span style=&quot;color: green; font-size: 85%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ccccff; font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: green; font-size: 85%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ccccff; font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: green; font-size: 85%;&quot;&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;/*&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* Program for setting null layout or absolute positioning&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* you can put button over another button&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* Copyright 2009 @ yuvadeveloper&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;* Code By:- Prashant Chandrakar&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;*&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; java.awt.*;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; javax.swing.*;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; javax.swing.plaf.synth.*;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; NullLayout &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;extends&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JFrame&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    NullLayout()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        super&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Null Layout Prashant Chandrakar&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            JFrame.setDefaultLookAndFeelDecorated(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.getContentPane().setBackground(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Color&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.GRAY);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;          JLabel uname = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JLabel(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;UserName&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            JLabel pword = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JLabel(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;Password&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            JTextField utxt = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JTextField(20);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            JTextField ptxt = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JTextField(20);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;         &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;this&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.setLayout(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;////by using this method set the x,y ,width ,height&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;          uname.setBounds(40, 27, 100, 25);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            utxt.setBounds(150, 27, 100, 25);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            pword.setBounds(40, 70, 100, 25);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            ptxt.setBounds(150, 70, 100, 25);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.add(uname);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.add(utxt);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.add(pword);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.add(ptxt);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            JButton btsave = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JButton(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;SAVE&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            JButton btcancel = &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; JButton(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&quot;CANCEL&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            btcancel.setBounds(120, 127, 104, 25);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            btsave.setBounds(100, 107, 104, 25);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.add(btsave);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.add(btcancel);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        catch&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Exception&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; e)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: teal; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;            System&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.out.println(e);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        this&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.setSize(350, 200);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        this&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;.setVisible(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; main(&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;[] args) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;throws&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Throwable&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: teal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 16px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;        new&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; NullLayout();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 13px; margin-bottom: 0px; margin-top: 0px; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt; Snapshot:-&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5307813764255243090&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vDVccPjOacRR-VYYwppBTb9nOkgcOAGT_zx9-ZINvCEacIn3ccKIrJ_9IahlE-3JGw5LM3Olr2EDGR1K8xHTdbkhRDFWRmLLrZgQaOR9D4psJJie8ziQGimvRX7RFGjkr9Z5Ko_5IQ9G/s320/nullsnap.PNG&quot; style=&quot;cursor: hand; cursor: pointer; float: left; height: 184px; margin: 0 10px 10px 0; width: 320px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/6539983696616915014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/02/hi-freinds-most-of-time-every-developer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/6539983696616915014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/6539983696616915014'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/02/hi-freinds-most-of-time-every-developer.html' title='Null Layout or Absolute Positioning in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vDVccPjOacRR-VYYwppBTb9nOkgcOAGT_zx9-ZINvCEacIn3ccKIrJ_9IahlE-3JGw5LM3Olr2EDGR1K8xHTdbkhRDFWRmLLrZgQaOR9D4psJJie8ziQGimvRX7RFGjkr9Z5Ko_5IQ9G/s72-c/nullsnap.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5673912554780581063.post-5535934348856166769</id><published>2009-02-26T12:34:00.012+05:30</published><updated>2009-07-27T16:27:42.216+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="single instance"/><title type='text'>Single Instance Application in JAVA</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;Hello Friends,&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;One of the most asking question in java world is how to make java &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;application as a single instance.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;I google it and found many of the techniques.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;I am posted here some of popular techniques.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;Just go ahead and contact if you have problem......&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;1. By capturing port or through &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;ServerSocket&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; (short code) .&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    On this method we are creating a object of java.net.ServerSocket class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    And by passing a port number we are captured while first instance so&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    that if another instance &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;occurred&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; it is throwing a &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;bind Exception&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; and &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    you can tracked that any more instance is running on system.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    Just see the link for code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    &lt;a href=&quot;http://yuvadevelopers.dmon.com/java_examples/Single_Instance_small.htm&quot;&gt;http://yuvadevelopers.dmon.com/java_examples/Single_Instance_small.htm&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(153, 153, 153); font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;2. By capturing port or through &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;ServerSocket&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; (Big code).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    It is same as the first method but while google i got this big code with&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;different&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; option just go through the code.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;     Just see the link for code&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(153, 153, 153);  font-family:verdana;&quot;&gt;     See the original source here get from google&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    &lt;a href=&quot;http://www.rbgrn.net/blog/2008/05/java-single-application-instance.html&quot;&gt; &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;a href=&quot;http://www.rbgrn.net/blog/2008/05/java-single-application-instance.html&quot;&gt;http://www.rbgrn.net/blog/2008/05/java-single-application-instance.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;3. By accessing file from local file system.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    This is also another method for doing the same thing.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    But it is not that much &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;preferable&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; because sometime when JVM &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    crashes or due to some IO error occured then file is not deleted &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    from hard disk.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    note:- Dont put your file (you can use any file) in C drive or where OS exist.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    Just see below for code&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:verdana;color:#999999;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: &#39;times new roman&#39;; &quot;&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Verdana;font-size:100%;color:#CCCCFF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: &#39;times new roman&#39;; font-size: 16px; line-height: normal; &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Verdana;font-size:100%;color:#CCCCFF;&quot;&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;/*&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* Program for setting single instance in JAVA&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* Copyright 2009 @ yuvadeveloper&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;* Code By:- Prashant Chandrakar&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;*&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;*/&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; java.net.&lt;span style=&quot;color:#008080;&quot;&gt;ServerSocket&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; javax.swing.JOptionPane;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; javax.swing.JFrame;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; java.io.&lt;span style=&quot;color:#008080;&quot;&gt;IOException&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; java.net.&lt;span style=&quot;color:#008080;&quot;&gt;BindException&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; SingleInstance&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;ServerSocket&lt;/span&gt; serverSocket;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;String&lt;/span&gt; errortype = &lt;span style=&quot;color:#800000;&quot;&gt;&quot;Access Error&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;String&lt;/span&gt; error = &lt;span style=&quot;color:#800000;&quot;&gt;&quot;Application already running.....&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt; &lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;void&lt;/span&gt; main(&lt;span style=&quot;color:#008080;&quot;&gt;String&lt;/span&gt; as[])&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;    {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#0000ff;&quot;&gt;        try&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;        {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;            //creating object of server socket and bind to some port number&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            serverSocket = &lt;span style=&quot;color:#0000ff;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#008080;&quot;&gt;ServerSocket&lt;/span&gt;(15486);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;           &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;   &lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;         ////do not put common port number like 80 etc.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;color:#008000;&quot;&gt;            ////Because they are already used by system&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            JFrame jf = &lt;/span&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt; JFrame();&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            jf.setVisible(&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;            jf.setSize(200, 200);&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;        }&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        catch&lt;/span&gt; (&lt;span style=&quot;color:#008080;&quot;&gt;BindException&lt;/span&gt; exc)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;        {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            JOptionPane.showMessageDialog(&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;, error, errortype, JOptionPane.ERROR_MESSAGE);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#008080;&quot;&gt;            System&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;.exit(0);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;        }&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;        catch&lt;/span&gt; (&lt;span style=&quot;color:#008080;&quot;&gt;IOException&lt;/span&gt; exc)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;        {&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;            JOptionPane.showMessageDialog(&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;color:#0000ff;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;, error, errortype, JOptionPane.ERROR_MESSAGE);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 16px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;color:#008080;&quot;&gt;            System&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;.exit(0);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;        }&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;    }&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span style=&quot;font-family:Verdana;font-size:85%;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Verdana;font-size:100%;color:#CCCCFF;&quot;&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;p style=&quot;line-height: 13px; word-spacing: 0px; margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:Verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:verdana;color:#999999;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;4. By using java sun.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;jvmstat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; package from tools.jar.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;     Just see the link for code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;5. By using Launch4j application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    It is a third party tools for creating a EXE for your application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    It is giving you a facility of creating single instance application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    Just try it. It is perfect tool. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    Just see the launch4j application doc&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;a href=&quot;http://launch4j.sourceforge.net/&quot;&gt;http://launch4j.sourceforge.net/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;a href=&quot;http://launch4j.sourceforge.net/&quot;&gt; &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(153, 153, 153);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuvadeveloper.blogspot.com/feeds/5535934348856166769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/02/single-instance-application-in-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/5535934348856166769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5673912554780581063/posts/default/5535934348856166769'/><link rel='alternate' type='text/html' href='http://yuvadeveloper.blogspot.com/2009/02/single-instance-application-in-java.html' title='Single Instance Application in JAVA'/><author><name>Prashant Chandrakar</name><uri>http://www.blogger.com/profile/12327292193463157805</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzorzGIZ69c5FU7TpLyiissliKfwEAEnAHbcY_L4XaAwN4859uTtCF1rd1Wxi0eKtX3P7C9G9_6dng92JkPC2JwADG8eNjsiYk4fSFpWS-Z0SOlsCeW6x0fufXjU8kcPg/s220/my.Jpeg'/></author><thr:total>1</thr:total></entry></feed>