<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Der Informatikblog &#187; Mo</title>
	<atom:link href="http://www.informatik-blog.net/author/mo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.informatik-blog.net</link>
	<description>Informatik &#38; Co.</description>
	<lastBuildDate>Mon, 19 Dec 2011 13:01:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Grafikausgabe mit Java</title>
		<link>http://www.informatik-blog.net/2009/01/27/grafikausgabe-mit-java/</link>
		<comments>http://www.informatik-blog.net/2009/01/27/grafikausgabe-mit-java/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 09:17:21 +0000</pubDate>
		<dc:creator>Mo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[grafikausgabe]]></category>

		<guid isPermaLink="false">http://www.informatik-blog.net/?p=398</guid>
		<description><![CDATA[Folgendes Beispiel zeigt eine einfache Grafikausgabe mit Java und der Methode fillRect(). Die Ausgabe wäre ein einfaches T. import java.awt.*; //Wird für die Grafikausgabe benötigt import java.awt.event.*; &#160; public class Grafik_ausgabe extends Frame &#123; public Grafik_ausgabe&#40;&#41; &#123; super&#40;&#34;Grafikausgabe mit JAVA&#34;&#41;; addWindowListener&#40; new WindowAdapter&#40;&#41; &#123; public void windowClosing&#40;WindowEvent event&#41; &#123; System.exit&#40;0&#41;; &#125; &#125; &#41;; setSize&#40;300,250&#41;; setVisible&#40;true&#41;; [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Folgendes Beispiel zeigt eine einfache Grafikausgabe mit Java und der Methode fillRect(). Die Ausgabe wäre ein einfaches T.</p>
<p><span id="more-398"></span></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.*</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Wird für die Grafikausgabe benötigt</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Grafik_ausgabe <span style="color: #000000; font-weight: bold;">extends</span> <span style="color: #003399;">Frame</span>
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> Grafik_ausgabe<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #009900;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Grafikausgabe mit JAVA&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      addWindowListener<span style="color: #009900;">&#40;</span>
         <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">WindowAdapter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> windowClosing<span style="color: #009900;">&#40;</span><span style="color: #003399;">WindowEvent</span> event<span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
               <span style="color: #003399;">System</span>.<span style="color: #006633;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      setSize<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">300</span>,<span style="color: #cc66cc;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      setVisible<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> paint<span style="color: #009900;">&#40;</span><span style="color: #003399;">Graphics</span> gr<span style="color: #009900;">&#41;</span>
   <span style="color: #009900;">&#123;</span>
      <span style="color: #666666; font-style: italic;">//Parameter: XPOS, YPOS, BREITE, LÄNGE</span>
      gr.<span style="color: #006633;">fillRect</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">80</span>,<span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Oberer Balken</span>
      gr.<span style="color: #006633;">fillRect</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">135</span>,<span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">10</span>,<span style="color: #cc66cc;">80</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Unterer Balken</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span>
   <span style="color: #009900;">&#123;</span>
      Grafik_ausgabe ga <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Grafik_ausgabe<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.informatik-blog.net/2009/01/27/grafikausgabe-mit-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zahlen in String umwandeln</title>
		<link>http://www.informatik-blog.net/2009/01/22/zahlen-in-string-umwandeln/</link>
		<comments>http://www.informatik-blog.net/2009/01/22/zahlen-in-string-umwandeln/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 15:02:56 +0000</pubDate>
		<dc:creator>Mo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[Integer]]></category>
		<category><![CDATA[toString]]></category>

		<guid isPermaLink="false">http://www.informatik-blog.net/?p=39</guid>
		<description><![CDATA[Manchmal ist es nötig Zahlen wieder in einen String zu bekommen um sie z.B. in ein Textfeld als Ausgabe zu schreiben. Dafür steht uns Integer.toString() zur Verfügung. Das folgende Beispiel zeigt wie es geht. Die Ausgabe wäre &#8220;12345&#8243; als String. &#160; /** * Int -&#38;gt; String * * Autor: Mo */ public class main &#123; [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Manchmal ist es nötig Zahlen wieder in einen String zu bekommen um sie z.B. in ein Textfeld als Ausgabe zu schreiben. Dafür steht uns <em>Integer.toString()</em> zur Verfügung. Das folgende Beispiel zeigt wie es geht. Die Ausgabe wäre &#8220;12345&#8243; als String.</p>
<p><span id="more-39"></span></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #008000; font-style: italic; font-weight: bold;">/**
 * Int -&amp;gt; String
 *
 * Autor: Mo
 */</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> main <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">int</span> zahlen <span style="color: #339933;">=</span> <span style="color: #cc66cc;">12345</span><span style="color: #339933;">;</span>
        <span style="color: #003399;">String</span> string1 <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;123&quot;</span><span style="color: #339933;">;</span>
        string1 <span style="color: #339933;">=</span> <span style="color: #003399;">Integer</span>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span>zahlen<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>string1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.informatik-blog.net/2009/01/22/zahlen-in-string-umwandeln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welche Entwicklungsumgebung?</title>
		<link>http://www.informatik-blog.net/2009/01/22/welche-entwicklungsumgebung/</link>
		<comments>http://www.informatik-blog.net/2009/01/22/welche-entwicklungsumgebung/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 14:12:32 +0000</pubDate>
		<dc:creator>Mo</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.informatik-blog.net/?p=35</guid>
		<description><![CDATA[Es ist wichtig sich zu überlegen mit welchem Editor man arbeiten möchte, da dies in Zukunft die Arbeitsfläche sein wird von der man beim Arbeiten umgeben ist. Heute möchte ich Ihnen zwei wichtige Editoren vorstellen. Java Editor Der Java Editor ist auf jeden Fall für Anfänger zu empfehlen. Über wenige Klicks lassen sich richtige Windows [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Es ist wichtig sich zu überlegen mit welchem Editor man arbeiten möchte, da dies in Zukunft die Arbeitsfläche sein wird von der man beim Arbeiten umgeben ist. Heute möchte ich Ihnen zwei wichtige Editoren vorstellen.</p>
<p><strong>Java Editor</strong></p>
<p>Der Java Editor ist auf jeden Fall für Anfänger zu empfehlen. Über wenige Klicks lassen sich richtige Windows Fenster erstellen und in einer WYSIWYG-Oberfläche können Buttons oder ähnliches plaziert werden. Der Quellcode ist aber stehts in einem seperaten Fenster einsichtlich. Somit liefert der Java Editor für Anfänger eine optimale Entwicklungsumgebung um sich in Java einzuleben.</p>
<p><strong>Eclipse</strong></p>
<p>Eclipse ist ein weitaus komplexerer Editor und auch für das professionelle Programmieren zu empfehlen. Man arbeitet nur mit dem Quellcode, wobei Eclipse die nützliche Funktion der Auto-Vervollständigung bietet. Aus z.B. aufgelisteten Methoden kann man sich so die gewünschte Auswählen. Des weiteren lassen sich Klassen, Attribute und Methoden übersichlich darstellen und innerhalb des Quellcodes werden inhaltliche Verknüpfungen auf Wunsch grafisch dargestellt.</p>
<p>Wer also einem Anfänger die Funktionen von Java anschaulich darstellen will greift mal eben zum Java-Editor, geht es in die richtigen Programmierphasen sollten anspruchsvollere Entwicklungsumgebungen wie Eclipse verwendet werden.</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.informatik-blog.net/2009/01/22/welche-entwicklungsumgebung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

