    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>ACCU  :: Java Q &amp; A</title>
        <link>https://members.accu.org/index.php/articles/1003</link>
        <description>Professionalism in Programming</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:webeditor@accu.org" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>




<div class="xar-mod-head"><span class="xar-mod-title">Programming Topics + CVu Journal Vol 12, #3 - May 2000</span></div>

<table border="0" cellpadding="1" cellspacing="0">
    <tbody>
    <tr>
        <td valign="top">
            Browse in :
       </td>
       <td valign="top">

                                            <a href="https://members.accu.org/index.php/articles/">All</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c13/">Topics</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c65/">Programming</a>
<br />

                                            <a href="https://members.accu.org/index.php/articles/">All</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c76/">Journals</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c77/">CVu</a>

                     &gt;                         <a href="https://members.accu.org/index.php/articles/c126/">123</a>
<br />

                                            <a href="https://members.accu.org/index.php/articles/c65-126/">Any of these categories</a>

                    -                        <a href="https://members.accu.org/index.php/articles/c65+126/">All of these categories</a>
<br />
</td>
   </tr>
   </tbody>
</table>




<div class="xar-error">
   <p>
 <strong>Note:</strong> when you create a new publication type,
the articles module will automatically use the templates
<em>user-display-[publicationtype].xt</em>
and <em>user-summary-[publicationtype].xt</em>.
If those templates do not exist when you try to preview or display a new article,
you'll get this warning :-)  Please place your own templates in themes/<em>yourtheme</em>/modules/articles . The templates will get the extension .xt there. </p>
</div>
<div class="xar-norm xar-standard-box-padding">
   <h1><strong>Title:</strong>&nbsp;Java Q &amp; A</h1>
<p><strong>Author:</strong>&nbsp;</p>
<p>
<strong>Date:</strong> 03 May 2000 13:15:36 +01:00 or Wed, 03 May 2000 13:15:36 +01:00</p>
<p><strong>Summary:</strong>&nbsp;</p>
<p><strong>Body:</strong>&nbsp;<div class="sect1" lang="en">
<div class="titlepage">
<h2><a name="d0e18" id="d0e18"></a></h2>
</div>
<p class="c2"><span class="remark">This month's Q&amp;A section
consists of some questions I posed on the accu-general mailing list
as I began refreshing my limited Java knowledge, after having
volunteered to take on this role. Please feel free to email me any
questions you wish to ask here, or answers to previously asked
questions. Thanks to everyone who contributed</span></p>
<p class="c2"><span class="remark">Ed.</span></p>
</div>
<div class="sect1" lang="en">
<div class="titlepage">
<h2><a name="d0e27" id="d0e27"></a>Questions and
Answers</h2>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e30" id="d0e30"></a>Question 1</h3>
</div>
<p>Having used Java exclusively for noddy applets, using Sun's JDK,
I'd now like to write a few &quot;larger&quot; more serious applications in
Java, yet don't relish the idea of using command line tools, and
not having a debugger of the &quot;quality&quot; (read feature set) of
MSVC++. So what tools does everyone else use - both commercial
tools and freeware/shareware (the cost is going to come out of my
own pocket)?</p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e35" id="d0e35"></a>Answer (Alan
Bellingham)</h3>
</div>
<p>Well - when I'm doing Java, I tend to end up using Borland's
<span class="emphasis"><em>JBuilder</em></span>. It's proper
portable Java, rather than - ahem - MS J++. You'd want a fairly
powerful PC, because being written pretty much in Java itself, it's
not quite as responsive as an IDE compiled directly to native code.
Version 3 is out, and I've not used that yet, so it may well have
become more responsive if they got the JIT compiler working
right.</p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e43" id="d0e43"></a>Answer (David
Williams)</h3>
</div>
<div class="sect3" lang="en">
<div class="titlepage">
<h3><a name="d0e46" id="d0e46"></a>A few ideas:</h4>
</div>
<p>You can download an 100% Java version of <span class=
"emphasis"><em>JBuilder</em></span> 3.0 from Inprise/Borland for
free.</p>
<p>PC Plus frequently has <span class=
"emphasis"><em>JBuilder</em></span> on their cover-disc.</p>
<p>The Borland IDE is decent. A lot of developers seem to prefer it
to MSVC. I personally prefer Symantec <span class=
"emphasis"><em>Visual Cafe</em></span>. I haven't seen a cover-disc
version though.</p>
</div>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e64" id="d0e64"></a>Question 2</h3>
</div>
<p>Threads - As Thread.stop() is deprecated (and a little heavy
handed), what is the &quot;correct&quot; way to stop a thread?</p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e69" id="d0e69"></a>Answer (Mark T.
Kuschnir)</h3>
</div>
<p>The docs say use some variable to tell the thread to end. I
assume that this would normally be implemented using a method to
set the flag that would be checked by the infinite run loop.</p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e74" id="d0e74"></a>Answer
(Hefin)</h3>
</div>
<p>By having the thread drop out of its run method. If you want to
stop it with a view to starting it again, then try using wait.
Stopping a thread is described in the Sun Java Tutorial, check out:
<a href=
"http://java.sun.com/%20docs/books/tutorial/essential/threads/lifecycle.html"
target="_top">http://java.sun.com/
docs/books/tutorial/essential/threads/lifecycle.html</a></p>
<p class="c2"><span class="remark">I've found the entire tutorial
series that Hefin is referring to invaluable, I'd recommend
downloading it if you are new to Java. Ed.</span></p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e84" id="d0e84"></a>Answer (Steve
Cornish)</h3>
</div>
<p>The only true answer is to return from <tt class=
"methodname">Thread.run()</tt>.</p>
</div>
</div>
<div class="sect1" lang="en">
<div class="titlepage">
<h2><a name="d0e92" id="d0e92"></a>Questions For
Next Time</h2>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e95" id="d0e95"></a>Question 1</h3>
</div>
<p>What is a Java Bean, and why would I use one?</p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e100" id="d0e100"></a>Question 2</h3>
</div>
<p>I tried <span class="emphasis"><em>JBuilder</em></span>, but it
uses all these classes (<tt class="classname">JFrame</tt>,
<tt class="classname">JApplet</tt>) etc. Is this Borland's
proprietary API?</p>
</div>
<div class="sect2" lang="en">
<div class="titlepage">
<h3><a name="d0e114" id="d0e114"></a>Question 3</h3>
</div>
<p>Can I download a text file off a web server and display it in my
applet, given they both have the same document base?</p>
</div>
</div>
</p>
<p><strong>Notes:</strong>&nbsp;</p>
<p><em>More fields may be available via dynamicdata ..</em></p>
</div>
</channel>
</rss>
