<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Byte-Welt Forum</title>
		<link>http://forum.byte-welt.net/</link>
		<description>Byte-Welt - Die Welt des Programmierens --- Wir sind die Community, in der die Benutzer sagen, wohin wir uns entwickeln. Ihr habt Spaß am Programmieren, habt aber Probleme dabei? Dann seid ihr bei uns richtig. Wir sind eine junge Community, in der euch nette Leute nach bestem Wissen helfen werden. Wir suchen Verstärkung im Bereich C++, C# (C sharp), Visual Basic und J2EE (Servlets, JSP)</description>
		<language>de</language>
		<lastBuildDate>Tue, 18 Jun 2013 23:58:31 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.byte-welt.de/images/peanut/misc/rss.jpg</url>
			<title>Byte-Welt Forum</title>
			<link>http://forum.byte-welt.net/</link>
		</image>
		<item>
			<title>How to switch on another perspective?</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4490&amp;goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 15:38:50 GMT</pubDate>
			<description><![CDATA[Hello world, 
 
I am a beginner with docking frames, and i want to create some perspective and switch on with a button. But 
i don't known how can i...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hello world,<br />
<br />
I am a beginner with docking frames, and i want to create some perspective and switch on with a button. But<br />
i don't known how can i do this!<br />
<br />
I had build my perspective with the following code<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">public class MyFrame extends JFrame {<br />
<br />
&nbsp;  public MyFrame(WorkshopDatabase db)<br />
&nbsp; {<br />
&nbsp; &nbsp; &nbsp; super();<br />
&nbsp; &nbsp; &nbsp; CControl ctrl = new CControl(this);<br />
&nbsp; &nbsp; &nbsp; ctrl.setMissingStrategy(MissingCDockableStrategy.STORE);<br />
&nbsp; &nbsp; &nbsp; PerspectiveDockFactory factory = new PerspectiveDockFactory(ctrl.getController(), db);<br />
&nbsp; &nbsp; &nbsp; ctrl.addSingleDockableFactory(factory, factory);<br />
<br />
&nbsp; &nbsp; &nbsp; ctrl.createWorkingArea(WORKING_AREA_NAME + EPerspective.BdD.name());<br />
&nbsp; &nbsp; &nbsp; ctrl.createWorkingArea(WORKING_AREA_NAME + EPerspective.Scenario.name());<br />
&nbsp; &nbsp; &nbsp; ctrl.createWorkingArea(WORKING_AREA_NAME + EPerspective.Carte.name());<br />
&nbsp; &nbsp; &nbsp; this.buildPerspective(ctrl.getPerspectives());<br />
<br />
&nbsp; &nbsp; &nbsp; this.getContentPane().add(ctrl.getContentArea(), BorderLayout.CENTER);<br />
&nbsp; &nbsp; &nbsp; this.setVisible();<br />
<br />
&nbsp; }<br />
<br />
&nbsp;  private void buildPerspective(CControlPerspective perspectives)<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(EPerspective name : EPerspective.values())<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CPerspective perspective = perspectives.createEmptyPerspective();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CWorkingPerspective workshop = (CWorkingPerspective)perspective.getStation(WORKING_AREA_NAME + name.name());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; perspective.getContentArea().getCenter().gridAdd(0,0, 1, 1, workshop);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.setupPerspective(name, workshop);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; perspectives.setPerspective(perspective, false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  private void setupPerspective(EPerspective name, CWorkingPerspective workshop)<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(EPerspective.BdD.equals(name))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 0, 1, 1, new SingleCDockablePerspective(&quot;Reseaux&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 1, 1, 1, new SingleCDockablePerspective(&quot;Communications&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 2, 1, 1, new SingleCDockablePerspective(&quot;Menaces&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(1, 0, 1, 2, new SingleCDockablePerspective(&quot;Plateformes&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(1, 2, 1, 1, new SingleCDockablePerspective(&quot;Proprietes&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(EPerspective.Scenario.equals(name))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 0, 1, 1, new SingleCDockablePerspective(&quot;Elements&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 1, 1, 1, new SingleCDockablePerspective(&quot;Objets comunicants&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 2, 1, 1, new SingleCDockablePerspective(&quot;Missions&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(1, 0, 1, 2, new SingleCDockablePerspective(&quot;Comportement&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(1, 2, 1, 1, new SingleCDockablePerspective(&quot;Proprietes&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if(EPerspective.Carte.equals(name))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workshop.gridAdd(0, 0, 1, 1, new SingleCDockablePerspective(&quot;Carte&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->In result my frame don't show any working area. Why?<br />
<br />
How can i do? <br />
<br />
Please help me!!!</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=69">DockingFrames</category>
			<dc:creator>nbrodnan</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4490</guid>
		</item>
		<item>
			<title>Konkrete Typparamater generischer Klasse</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4489&amp;goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 07:19:41 GMT</pubDate>
			<description>Hallo, 
 
angenommen ich habe folgenden Code:  
public class Verkauefer extends Mitarbeiter { 
   
  /** Konstruktor */ 
  public Verkauefer (String...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hallo,<br />
<br />
angenommen ich habe folgenden Code: <br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:148px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Verkauefer <span style="color: #000000; font-weight: bold;">extends</span> Mitarbeiter <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #666666; font-style: italic;">/** Konstruktor */</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> Verkauefer <span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> name<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:148px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Mechaniker <span style="color: #000000; font-weight: bold;">extends</span> Mitarbeiter <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #666666; font-style: italic;">/** Konstruktor */</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> Mechaniker <span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> name<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:244px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">abstract</span> <span style="color: #000000; font-weight: bold;">class</span> Raum <span style="color: #000000; font-weight: bold;">extends</span> Autohaus <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/** Raumliste. */</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> ArrayList<span style="color: #339933;">&lt;</span>Mitarbeiter<span style="color: #339933;">&gt;</span> employeeList <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&lt;</span>Mitarbeiter<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">/** Name. */</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">private</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> name<span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #666666; font-style: italic;">/** Konstruktor */</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">protected</span> Raum <span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> name<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">name</span> <span style="color: #339933;">=</span> name<span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:228px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Werkstatt<span style="color: #339933;">&lt;</span>Mechaniker<span style="color: #339933;">&gt;</span> <span style="color: #000000; font-weight: bold;">extends</span> Raum <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">private</span> Mechaniker m<span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #666666; font-style: italic;">/** Name der Werkstatt. */</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> name<span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> Werkstatt<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> name, Mechaniker m<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">m</span> <span style="color: #339933;">=</span> m<span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
Nun möchte ich mittels Generics dafür sorgen, dass ich nur Mechaniker in Werkstätten setzen kann und Verkäufer in Büros.<br />
<br />
Eigentlich dachte ich reichen die aktuellen Typparameter bei Werkstatt aus um nur Mechaniker hinzuzufügen. Aber leider kann ich da auch Verkäufer hinzufügen.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=13">Java Standard Edition (J2SE)</category>
			<dc:creator>Nathan</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4489</guid>
		</item>
		<item>
			<title>Fenster Zentrieren</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4487&amp;goto=newpost</link>
			<pubDate>Fri, 14 Jun 2013 13:49:13 GMT</pubDate>
			<description>Guten Tag  
Habe ein programm geschrieben für Medienverwaltung. 
Soweit funktioniert alles. Jetzt möchte ich das die Fenster z.B. MP3, Ton und Bild...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Guten Tag <br />
Habe ein programm geschrieben für Medienverwaltung.<br />
Soweit funktioniert alles. Jetzt möchte ich das die Fenster z.B. MP3, Ton und Bild nebem meinem programm aufgehen und wen ich ein weiteres öffne dann soll es ca 25x25 pixel weite weg erscheien als das davor.<br />
<br />
Jemmand ein vorschlag wie ich das machen kann?<br />
Bei bedarf kann ich alle klasse hir einfügen sind 15 stk. Hoffe es geht so könnt gern eigene Variablen benutzen.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=13">Java Standard Edition (J2SE)</category>
			<dc:creator>Saron</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4487</guid>
		</item>
		<item>
			<title>Quersummenberechnung von 2 hoch 12345 in c#</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4486&amp;goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 16:19:55 GMT</pubDate>
			<description>Hallo, 
 
ich bin gerade dabei c# zu lernen und habe folgende Aufgabe bekommen: 
 
es soll die Quersumme von 2 hoch 12345 angezeigt und berechnet...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hallo,<br />
<br />
ich bin gerade dabei c# zu lernen und habe folgende Aufgabe bekommen:<br />
<br />
es soll die Quersumme von 2 hoch 12345 angezeigt und berechnet werden.<br />
<br />
Da das Ergebnis von 2 hoch 12345 über 3700 Zeichen hat weis ich nicht wie<br />
das mit c# berechnet werden kann. Dafür gibt es keinen Datentyp. Der längste <br />
hat 64 Bit und reicht für die Berechnung natürlich nicht aus.<br />
Gibt es da irgendeinen Trick und wenn ja, was für einen?<br />
<br />
Für eine Hilfe oder den Programmcode wäre ich echt dankbar.<br />
<br />
Gruß,<br />
<br />
Micha</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=15">C# -Forum</category>
			<dc:creator>Unregistriert</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4486</guid>
		</item>
		<item>
			<title>2D Array - Berechnung</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4485&amp;goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 11:26:42 GMT</pubDate>
			<description>Hallo zusammen, 
ich habe ein Problem wo ich Hilfe benötige.  
Kurze Erklärung: Ich habe eine JTable mit vielen Daten, von dort aus packe ich alles...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hallo zusammen,<br />
ich habe ein Problem wo ich Hilfe benötige. <br />
Kurze Erklärung: Ich habe eine JTable mit vielen Daten, von dort aus packe ich alles in ein 2D-String-Array. Danach benutze ich JFreeChart und baue mir ein Chart (&quot;eine Pyramide&quot;) wo ich die männlichen und weiblichen im Alter von 18-65 aufzeige. <br />
Soweit funktioniert das alles. <br />
Was will ich tun: 2 Dinge<br />
<br />
Ich will die Leute (männlich/weiblich) die ich ja in der Pyramide habe alle um &quot;x&quot; Jahre altern lassen. Ich habe ein Eingabefeld wo ich die &quot;Jahre&quot; abfrage und berechne die Pyramide neu. Nun ist es aber so, dass alle natürlich um &quot;x&quot; Jahre älter werden, aber ich möchte die Leute zwischen &quot;19 und 21&quot; Jahren mit 2% der gesamten Menge nachbesetzen. So das es keine Lücken gibt in der Pyramide, wenn sie altern.<br />
D.h. ich gucke mir den Stand der Leute an (bsp.: es sind 10.000) und rechne davon 2% aus (200 Leute). Diese sollen 200 Leute sollen zu 75% männlich sein und 25% sollen weiblich sein (einfach ausgedacht).<br />
Wenn jemand jetzt x=5 eingibt, sollen Sie ja alle um 5 Jahre älter werden und die Nachbesetzung soll jedes Jahr stattfinden. Somit sollten ja keine Lücken in der Pyramide entstehen. <br />
Problem: Ich kriege es nur für x=1 hin...aber nicht für x=n2).<br />
Im Alter von 23-50 will ich von der gesamten Menge jedes Mal 1,5% rausschmeisen (männlich und weiblich). <br />
Problem: Ich kriege es nur für x=1 hin .... aber nicht für x=n	<br />
<br />
Java Code:<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:644px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">sPrognoseArray <span style="color: #339933;">=</span> sTableDataArray.<span style="color: #006633;">clone</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> iAlter <span style="color: #339933;">=</span> <span style="color: #cc66cc;">65</span><span style="color: #339933;">;</span> iAlter <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">18</span><span style="color: #339933;">;</span> iAlter<span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">double</span> dAnzahlMann <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">double</span> dAnzahlFrau <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dSchwankungBerechnungManner <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dSchwankungBerechungFrauen <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dAzubiBerechnungFrauen <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dAzubiBerechnungManner <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> sPrognoseArray.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//iJahrEingabe: Eingabe über ein Feld (integer)...alle um &quot;x&quot; Jahre erhöhen</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; iNeuesAlter <span style="color: #339933;">=</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AInteger+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Integer</span></a>.<span style="color: #006633;">parseInt</span><span style="color: #009900;">&#40;</span>sPrognoseArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>iAlterJahre<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> iJahrEingabe<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>iNeuesAlter <span style="color: #339933;">==</span> iAlter <span style="color: #339933;">&amp;&amp;</span> sPrognoseArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>iAktive<span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #339933;">&amp;&amp;</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADouble+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Double</span></a>.<span style="color: #006633;">parseDouble</span><span style="color: #009900;">&#40;</span>sPrognoseArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>iAktive<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sPrognoseArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>iGeschlecht<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;männlich&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dAnzahlMann<span style="color: #339933;">++;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sPrognoseArray<span style="color: #009900;">&#91;</span>iGeschlecht<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;weiblich&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dAnzahlFrau<span style="color: #339933;">++;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//===Azubis berechenn ===</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dAzubiBerechnung <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>iGesamtAnzahl <span style="color: #339933;">*</span> dAzubiEingabe<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dAzubiBerechnungFrauen <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>dAzubiBerechnung <span style="color: #339933;">*</span> <span style="color: #cc66cc;">0.25</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dAzubiBerechnungManner <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>dAzubiBerechnung <span style="color: #339933;">*</span> <span style="color: #cc66cc;">0.75</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>iAlter <span style="color: #339933;">=</span> <span style="color: #cc66cc;">19</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; dAnzahlMann <span style="color: #339933;">+=</span> dAzubiBerechnungManner<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; dAnzahlFrau <span style="color: #339933;">+=</span> dAzubiBerechnungFrauen<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//=== Schwankung berechnen ===</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>iAlter <span style="color: #339933;">=</span> <span style="color: #cc66cc;">23</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; dSchwankungBerechnungManner <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>dAnzahlMann <span style="color: #339933;">*</span> dSchwankungEingabe<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; dAnzahlMann <span style="color: #339933;">-=</span> dSchwankungBerechnungManner<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; dSchwankungBerechungFrauen <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>dAnzahlFrau <span style="color: #339933;">*</span> dSchwankungEingabe<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; dAnzahlFrau <span style="color: #339933;">-=</span> dSchwankungBerechungFrauen<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;<span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dataPrognose.<span style="color: #006633;">addValue</span><span style="color: #009900;">&#40;</span>dAnzahlMann, sMann, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>iAlter<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp;dataPrognose.<span style="color: #006633;">addValue</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">-1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> dAnzahlFrau, sFrau, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #006633;">valueOf</span><span style="color: #009900;">&#40;</span>iAlter<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
Ich hoffe ich konnte das Problem (die Berechnungen) einigermaßen gut erklären. Sitze da schon eine Weile dran und komme nicht weiter... Sorry für den ganzen langen Text. <br />
Vielleicht hat einer ja Zeit und Lust mir dabei zu helfen...<br />
<br />
Gruß</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=13">Java Standard Edition (J2SE)</category>
			<dc:creator>ElObaga</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4485</guid>
		</item>
		<item>
			<title>Disabling or Overriding Keyboard Shortcuts</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4484&amp;goto=newpost</link>
			<pubDate>Wed, 12 Jun 2013 00:07:35 GMT</pubDate>
			<description>Hi, 
 
Is it possible to modify the set of keyboard shortcuts that DockingFrames uses? I have some existing UI that reacts to ctrl+e. If I hit ctrl+e...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br />
<br />
Is it possible to modify the set of keyboard shortcuts that DockingFrames uses? I have some existing UI that reacts to ctrl+e. If I hit ctrl+e once, the stack becomes externalized. If I hit ctrl+e again, the cell in my table becomes editable (as I'd hope it'd do in the first place). It'd be nice to be able to either turn the ctrl-e accelerator off completely, or at least re-map it.<br />
<br />
Thanks,<br />
<br />
-nate</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=69">DockingFrames</category>
			<dc:creator>amish</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4484</guid>
		</item>
		<item>
			<title>JTable mit ComboBoxen</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4483&amp;goto=newpost</link>
			<pubDate>Fri, 07 Jun 2013 12:27:56 GMT</pubDate>
			<description>Hallo, 
 
Folgende Aufgabe die ich lösen muss: 
Ich habe einen JTree und wenn ich auf eine entsprechende Node klick soll er mir ein neues Fenster...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hallo,<br />
<br />
Folgende Aufgabe die ich lösen muss:<br />
Ich habe einen JTree und wenn ich auf eine entsprechende Node klick soll er mir ein neues Fenster öffnen mit einer Tabelle, diese soll aus zwei Spalten bestehen, aber unterschiedlich vielen Zeilen (je nach dem welche Node ich anklick).<br />
So die erste Spalte soll mit Bezeichner gefüllt werden und in der zweiten Spalte soll immer die gleiche JComboBox rein, wobei die Elemente in der ComboBox wieder von Node zu Node unterschiedlich sind.<br />
Daher habe ich mich dran versucht ein eigenes TableModel zu schreiben und einen Editor sowie ein Renderer,<br />
Modell:<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:676px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TabMod <span style="color: #000000; font-weight: bold;">extends</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AAbstractTableModel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">AbstractTableModel</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> data <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;&quot;</span>,<span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> spalten <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;Object&quot;</span>, <span style="color: #0000ff;">&quot;Sollwert&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; List<span style="color: #339933;">&lt;</span>Object<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span> daten <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&lt;</span>Object<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> getRowCount<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> daten.<span style="color: #006633;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> getColumnCount<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> spalten.<span style="color: #006633;">length</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> getValueAt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> rowIndex, <span style="color: #000066; font-weight: bold;">int</span> columnIndex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> daten.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>rowIndex<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>columnIndex<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> getColumnName<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> num<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> spalten<span style="color: #009900;">&#91;</span>num<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setValueAt<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> aValue, <span style="color: #000066; font-weight: bold;">int</span> rowIndex, <span style="color: #000066; font-weight: bold;">int</span> columnIndex<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/*&nbsp; if(columnIndex == 1){</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;RRRRRROW &quot;+rowIndex+&quot; VALUEEEE :&quot;+aValue);</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ((JComboBox) daten.get(rowIndex)[columnIndex]).setSelectedItem(aValue);</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;TEST ETST TE :&quot;+((JComboBox) daten.get(rowIndex)[columnIndex]).getSelectedItem());</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">&nbsp; &nbsp; &nbsp; &nbsp; }else{*/</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;KLASSE VON VALUE :&quot;</span> <span style="color: #339933;">+</span>aValue.<span style="color: #006633;">getClass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span><span style="color: #0000ff;">&quot; VALUE &quot;</span><span style="color: #339933;">+</span>aValue<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>daten.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>rowIndex<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>columnIndex<span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">instanceof</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;BIN HIER&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#41;</span> daten.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>rowIndex<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>columnIndex<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setSelectedItem</span><span style="color: #009900;">&#40;</span>aValue.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#41;</span> daten.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>rowIndex<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>columnIndex<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getSelectedItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; daten.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>rowIndex<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>columnIndex<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>aValue<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//}</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fireTableDataChanged<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> isCellEditable<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> row, <span style="color: #000066; font-weight: bold;">int</span> column<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>column <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setNewRow<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> oid, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a> box<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; data<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> oid<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; data<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> box<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; daten.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">Class</span> getColumnClass<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> num<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a>.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a>.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
Editor:<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:660px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TabEditor <span style="color: #000000; font-weight: bold;">extends</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AAbstractCellEditor+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">AbstractCellEditor</span></a> <span style="color: #000000; font-weight: bold;">implements</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ATableCellEditor+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TableCellEditor</span></a>,<a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AActionListener+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ActionListener</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> List<span style="color: #339933;">&lt;</span>JComboBox<span style="color: #339933;">&gt;</span> boxen <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&lt;</span>JComboBox<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> currentrow &nbsp;<span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> TabEditor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> getCellEditorValue<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> boxen.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>currentrow<span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getSelectedItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AComponent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Component</span></a> getTableCellEditorComponent<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJTable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JTable</span></a> table, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> value,</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">boolean</span> isSelected, <span style="color: #000066; font-weight: bold;">int</span> row, <span style="color: #000066; font-weight: bold;">int</span> column<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; currentrow <span style="color: #339933;">=</span> row<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; boxen.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setSelectedItem</span><span style="color: #009900;">&#40;</span>value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//table.getModel().setValueAt(boxen.get(row), row, column);</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TEST&quot;</span><span style="color: #339933;">+</span>value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> boxen.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> addBox<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a> box<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #006633;">addActionListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; boxen.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>box<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> actionPerformed<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AActionEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ActionEvent</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; stopCellEditing<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
Renderer:<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:452px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TabRenderer <span style="color: #666666; font-style: italic;">/*extends DefaultTableCellRenderer*/</span> <span style="color: #000000; font-weight: bold;">implements</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ATableCellRenderer+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TableCellRenderer</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; List<span style="color: #339933;">&lt;</span>JComboBox<span style="color: #339933;">&gt;</span> boxen <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ArrayList<span style="color: #339933;">&lt;</span>JComboBox<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> currentrow <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> TabRenderer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> addBox<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a> box<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxen.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>box<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AComponent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Component</span></a> getTableCellRendererComponent<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJTable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JTable</span></a> table, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> value,</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">boolean</span> isSelected, <span style="color: #000066; font-weight: bold;">boolean</span> hasFocus, <span style="color: #000066; font-weight: bold;">int</span> row, <span style="color: #000066; font-weight: bold;">int</span> column<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; currentrow <span style="color: #339933;">=</span> row<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; boxen.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setSelectedItem</span><span style="color: #009900;">&#40;</span>value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> boxen.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
TestMain  (Hier Ohne Baum, da ich erstmal die Tabelle hinbekommen möchte)<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:676px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TableTest <span style="color: #000000; font-weight: bold;">extends</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJPanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JPanel</span></a> contentPane<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJTable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JTable</span></a> table<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> TabMod mod <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TabMod<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> TabEditor ed<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> &nbsp;TabEditor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> TabRenderer ren <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TabRenderer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &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><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><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></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AEventQueue+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">EventQueue</span></a>.<span style="color: #006633;">invokeLater</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ARunnable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Runnable</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TableTest frame <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TableTest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.<span style="color: #006633;">setVisible</span><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></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AException+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Exception</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/**</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">&nbsp; &nbsp; &nbsp;* Create the frame.</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;">&nbsp; &nbsp; &nbsp;*/</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> TableTest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setDefaultCloseOperation<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a>.<span style="color: #006633;">EXIT_ON_CLOSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setBounds<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #cc66cc;">450</span>, <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contentPane <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJPanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JPanel</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contentPane.<span style="color: #006633;">setBorder</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AEmptyBorder+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">EmptyBorder</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setContentPane<span style="color: #009900;">&#40;</span>contentPane<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contentPane.<span style="color: #006633;">setLayout</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJScrollPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JScrollPane</span></a> scrollPane <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJScrollPane+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JScrollPane</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; scrollPane.<span style="color: #006633;">setBounds</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">28</span>, <span style="color: #cc66cc;">432</span>, <span style="color: #cc66cc;">234</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contentPane.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>scrollPane<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Object[][] data = {{&quot;TEST&quot;, &quot;MU&quot;},{&quot;TEST&quot;,&quot;MUMU&quot;}};</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Object[] spalten = {&quot;gg&quot;,&quot;bb&quot;};</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; table <span style="color: #339933;">=</span> &nbsp;<span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJTable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JTable</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; table.<span style="color: #006633;">setModel</span><span style="color: #009900;">&#40;</span>mod<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; table.<span style="color: #006633;">setDefaultEditor</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a>.<span style="color: #000000; font-weight: bold;">class</span>, ed<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//&nbsp; table.setDefaultRenderer(JComboBox.class, new DefaultTableCellRenderer());</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; table.<span style="color: #006633;">setDefaultRenderer</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a>.<span style="color: #000000; font-weight: bold;">class</span>, ren<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; table.<span style="color: #006633;">setRowHeight</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; scrollPane.<span style="color: #006633;">setViewportView</span><span style="color: #009900;">&#40;</span>table<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJButton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JButton</span></a> btnWert <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJButton+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JButton</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;wert&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; btnWert.<span style="color: #006633;">addActionListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AActionListener+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ActionListener</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> actionPerformed<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AActionEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">ActionEvent</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getWert<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; btnWert.<span style="color: #006633;">setBounds</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">34</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">91</span>, <span style="color: #cc66cc;">23</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contentPane.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>btnWert<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setTable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setTable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; setTable2<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; getWert<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> setTable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ATableColumn+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TableColumn</span></a> sportColumn <span style="color: #339933;">=</span> table.<span style="color: #006633;">getColumnModel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getColumn</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a> comboBox <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Snowboarding&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Rowing&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Chasing toddlers&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Speed reading&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Teaching high school&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;None&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; mod.<span style="color: #006633;">setNewRow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;1&quot;</span>, comboBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ed.<span style="color: #006633;">addBox</span><span style="color: #009900;">&#40;</span>comboBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ren.<span style="color: #006633;">addBox</span><span style="color: #009900;">&#40;</span>comboBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> setTable2<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ATableColumn+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">TableColumn</span></a> sportColumn <span style="color: #339933;">=</span> table.<span style="color: #006633;">getColumnModel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getColumn</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a> comboBox <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Snowboarding&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">addItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;KICK&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; comboBox.<span style="color: #006633;">setSelectedItem</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;KICK&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; mod.<span style="color: #006633;">setNewRow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;1&quot;</span>, comboBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ed.<span style="color: #006633;">addBox</span><span style="color: #009900;">&#40;</span>comboBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ren.<span style="color: #006633;">addBox</span><span style="color: #009900;">&#40;</span>comboBox<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> getWert<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>mod.<span style="color: #006633;">getRowCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJComboBox+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JComboBox</span></a><span style="color: #009900;">&#41;</span> mod.<span style="color: #006633;">getValueAt</span><span style="color: #009900;">&#40;</span>i, <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getSelectedItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
Folgendes geht:<br />
Ich kann die Items der ComboBoxen auswählen, diese werden zumindest in der Table übernommen<br />
Folgendes geht nicht:<br />
Wenn ich die Werte abfragen möchte, gibt er mir immer den Wert, der ComboBox in der letzten Zeile zurück und zwar für alle drei TestComboBoxen<br />
die setValueAt -Methode meines Modells wird aufgerufen aber er übernimmt das .setSelectedItem(aValue) nicht:<br />
<br />
hier der Konsolen output:<br />
KLASSE VON VALUE :class java.lang.String VALUE Speed reading<br />
BIN HIER<br />
Snowboarding</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=13">Java Standard Edition (J2SE)</category>
			<dc:creator>tommy0014</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4483</guid>
		</item>
		<item>
			<title>Invoking a kernel function multiple times</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4482&amp;goto=newpost</link>
			<pubDate>Thu, 06 Jun 2013 07:43:39 GMT</pubDate>
			<description>Hi, 
 
I am currently trying to implement my own version of Jakobi iterations. However, when invoking the kernel function multiple times (without...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br />
<br />
I am currently trying to implement my own version of Jakobi iterations. However, when invoking the kernel function multiple times (without changing any arguments), I always get &quot;CUDA_ERROR_LAUNCH_FAILED&quot; as run result.<br />
The same kernel implementation works with plain cuda like a charm. Only JCuda throws this error, and only from the second call onwards. The first call succeeds. Do I have to take anything into account when calling a kernel multiple times?  This error can even be reproduced when running an empty kernel.<br />
<br />
The call currently looks like the following:<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; iterations; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cuLaunchKernel(function,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gridSize, 1, 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; blockSize, 1, 1,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0, null,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kernelParameters, null<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cuCtxSynchronize();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Thanks,<br />
Matthias</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=90">JCuda</category>
			<dc:creator>klassm</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4482</guid>
		</item>
		<item>
			<title>Exception when running JOCLSample</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4481&amp;goto=newpost</link>
			<pubDate>Wed, 05 Jun 2013 16:24:10 GMT</pubDate>
			<description><![CDATA[Hi, 
 
JOCLSample compiles fine, good times :) 
 
But when I try and run JOCLSample, I get the following Exception: 
 
Exception in thread "main"...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br />
<br />
JOCLSample compiles fine, good times :)<br />
<br />
But when I try and run JOCLSample, I get the following Exception:<br />
<br />
Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: org/jocl/NativePointerObject<br />
<br />
I am trying to run in on a 64bit Ubuntu 12.10 installation with an ATI graphics card <br />
<br />
Any Ideas?</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=91">JOCL</category>
			<dc:creator>bunu</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4481</guid>
		</item>
		<item>
			<title><![CDATA["Java wird künftig quartalsweise aktualisiert"]]></title>
			<link>http://forum.byte-welt.net/showthread.php?t=4480&amp;goto=newpost</link>
			<pubDate>Wed, 05 Jun 2013 09:43:32 GMT</pubDate>
			<description>---Zitat von ht4u.net--- 
Nachdem Oracle in den vergangen Monaten und bereits im letzten Jahr immer weider wegen den zahlreichen Sicherheitslücken...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Zitat:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<div>
					Zitat von <strong>ht4u.net</strong>
					
				</div>
				<div style="font-style:italic">Nachdem Oracle in den vergangen Monaten und bereits im letzten Jahr immer weider wegen den zahlreichen Sicherheitslücken von Java in die Kritik geriet, hat das Unternehmen nun reagiert und will Java künftig alle drei Monate mit Updates versorgen.</div>
			
			<hr />
		</td>
	</tr>
	</table>
</div>
<!-- END TEMPLATE: bbcode_quote_printable --><a href="http://ht4u.net/news/27829_java_wird_kuenftig_quartalsweise_aktualisiert/" target="_blank">mehr...</a><br />
<br />
<!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Zitat:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<div>
					Zitat von <strong>heise online</strong>
					
				</div>
				<div style="font-style:italic">Oracle will Java-Sicherheit verbessern</div>
			
			<hr />
		</td>
	</tr>
	</table>
</div>
<!-- END TEMPLATE: bbcode_quote_printable --><a href="http://www.heise.de/security/meldung/Oracle-will-Java-Sicherheit-verbessern-1875029.html" target="_blank">Kompletten Beitrag lesen</a></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=52">Java</category>
			<dc:creator>L-ectron-X</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4480</guid>
		</item>
		<item>
			<title>IllegalArgumentException: input == null ...</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4479&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 18:31:10 GMT</pubDate>
			<description>...aber input ist nicht null, das ist das Problem, wenn ich ein BufferedImage laden will. 
Socius.java liegt im verzeichnis...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>...aber input ist nicht null, das ist das Problem, wenn ich ein BufferedImage laden will.<br />
Socius.java liegt im verzeichnis c:/Java/Socius/src/Java/Soc/<br />
Die Bilder im Verzeichnis c:/Java/Socius/src/Java/Soc/textures/animation/<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:676px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">Java.Soc</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.Color</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.Dimension</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.Graphics</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.MouseEvent</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.MouseListener</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.image.BufferedImage</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.ListIterator</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Vector</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.imageio.ImageIO</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JFrame</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.JPanel</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Socius <span style="color: #000000; font-weight: bold;">extends</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJPanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JPanel</span></a> <span style="color: #000000; font-weight: bold;">implements</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ARunnable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Runnable</span></a>, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseListener+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseListener</span></a><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &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><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><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></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> Socius<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">800</span>, <span style="color: #cc66cc;">600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a> f<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AThread+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Thread</span></a> t<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ABufferedImage+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BufferedImage</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> laf<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; Sprite spieler<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; Vector<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span> actors<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; Vector<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span> painter<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">long</span> delta &nbsp; &nbsp;<span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">long</span> last &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">long</span> fps &nbsp; &nbsp; &nbsp;<span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> klickx<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> klicky<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> FPS <span style="color: #339933;">=</span> &nbsp;<span style="color: #0000ff;">&quot;FPS: &quot;</span><span style="color: #339933;">+</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ALong+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Long</span></a>.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span>fps<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> spPosaktX<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> spPosaktY<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">boolean</span> klick<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">long</span> serialVersionUID <span style="color: #339933;">=</span> 1L<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; Socius<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> w, <span style="color: #000066; font-weight: bold;">int</span> h<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">setPreferredSize</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADimension+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Dimension</span></a><span style="color: #009900;">&#40;</span>w,h<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">setBackground</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AColor+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Color</span></a>.<span style="color: #006633;">BLACK</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Socius&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">setLocation</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">setDefaultCloseOperation</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a>.<span style="color: #006633;">EXIT_ON_CLOSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">setBackground</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AColor+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Color</span></a>.<span style="color: #006633;">BLACK</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">pack</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">setVisible</span><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></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; t <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AThread+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Thread</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">addMouseListener</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; t.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; laden<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> laden<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; actors <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Vector<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; painter <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Vector<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; laf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ABufferedImage+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BufferedImage</span></a><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; laf<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> ImageIO.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span>Socius.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;textures/animation/a1.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; laf<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> ImageIO.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span>Socius.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;textures/animation/a2.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; laf<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> ImageIO.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span>Socius.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;textures/animation/a3.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AIOException+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">IOException</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; spieler <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #009900;">&#40;</span>laf, <span style="color: #cc66cc;">500</span>, <span style="color: #cc66cc;">300</span>, <span style="color: #cc66cc;">100</span>, <span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; actors.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>spieler<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>f.<span style="color: #006633;">isVisible</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; doLogic<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; bewegen<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; cloneVectors<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; computeDelta<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>klick<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkKlicks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>&nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>FPS<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AThread+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Thread</span></a>.<span style="color: #006633;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AInterruptedException+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">InterruptedException</span></a> ie<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>ie<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> checkKlicks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; spPosaktX <span style="color: #339933;">=</span> spPosaktX <span style="color: #339933;">+</span> <span style="color: #cc66cc;">50</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; spPosaktY <span style="color: #339933;">=</span> spPosaktY <span style="color: #339933;">+</span> <span style="color: #cc66cc;">50</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>klickx <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot; &nbsp;&quot;</span> <span style="color: #339933;">+</span> klicky<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; klick <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @SuppressWarnings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;unchecked&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> cloneVectors<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; painter <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Vector<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#41;</span> actors.<span style="color: #006633;">clone</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> bewegen<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>ListIterator<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span> it <span style="color: #339933;">=</span> actors.<span style="color: #006633;">listIterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>it.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sprite r <span style="color: #339933;">=</span> it.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.<span style="color: #006633;">move</span><span style="color: #009900;">&#40;</span>delta<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> paintComponent<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AGraphics+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Graphics</span></a> g<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>ListIterator<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span> it <span style="color: #339933;">=</span> painter.<span style="color: #006633;">listIterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>it.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sprite r <span style="color: #339933;">=</span> it.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.<span style="color: #006633;">drawObjects</span><span style="color: #009900;">&#40;</span>g, spPosaktX, spPosaktY<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> computeDelta<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delta <span style="color: #339933;">=</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">nanoTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> last<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; last <span style="color: #339933;">=</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">nanoTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fps <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">long</span><span style="color: #009900;">&#41;</span> 1e9<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>delta<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> doLogic<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>ListIterator<span style="color: #339933;">&lt;</span>Sprite<span style="color: #339933;">&gt;</span> it <span style="color: #339933;">=</span> actors.<span style="color: #006633;">listIterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>it.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sprite r <span style="color: #339933;">=</span> it.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r.<span style="color: #006633;">doLogic</span><span style="color: #009900;">&#40;</span>delta<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseClicked<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;klickx <span style="color: #339933;">=</span> e.<span style="color: #006633;">getX</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;klicky <span style="color: #339933;">=</span> e.<span style="color: #006633;">getY</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;klick <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseEntered<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> arg0<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseExited<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> arg0<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mousePressed<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> arg0<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseReleased<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> arg0<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight --><br />
Danke für eure Hilfe!</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=13">Java Standard Edition (J2SE)</category>
			<dc:creator>Zombiepriester</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4479</guid>
		</item>
		<item>
			<title>Jobangebot Senior Specialist E-Business - Frontend Concept Development (w/m) Ingolstadt</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4478&amp;goto=newpost</link>
			<pubDate>Mon, 27 May 2013 09:27:06 GMT</pubDate>
			<description>Hallo, 
einer unserer Kunden sucht einen *Senior Specialist E-Business. 
* 
*Konzipieren und Gestalten - Ihre Aufgaben* 
Konzepterstellung zur...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hallo,<br />
einer unserer Kunden sucht einen <b>Senior Specialist E-Business.<br />
</b><br />
<b>Konzipieren und Gestalten - Ihre Aufgaben</b><br />
Konzepterstellung zur Optimierung und Weiterentwicklung der Usability unserer Online-Kanäle<br />
Identifizieren von Markttrends einschließlich Treiben und Bewerten von Ideen<br />
Schnittstelle zu internen Kunden sowie externen Partnern, Agenturen und Landesgesellschaften<br />
 <br />
<b>Wissen und Wollen - Ihr Profil</b><br />
Ein abgeschlossenes Studium in (Wirtschafts-)Informatik, Betriebswirtschaft oder eine vergleichbare Ausbildung<br />
Einschlägige E-Business-Erfahrung - speziell im Frontend-Bereich - im Agentur- oder Internetshop Umfeld mit fundiertem Know-how aller gängigen Webapplikationen<br />
Charismatischer Ideentreiber mit ausgeprägter Kreativität und Umsetzungsorientierung<br />
Kommunikationsstark mit entsprechendem Standing und Durchsetzungsvermögen<br />
Sehr gute Englischkenntnisse in Wort und Schrift<br />
<br />
Create your career!<br />
Dich (m/w) reizt die Herausforderung? Du möchtest Teil eines dynamischen Teams werden?<br />
<br />
Interessiert? Hier in 2 Minuten per Quick Apply bewerben: <a href="http://bit.ly/13YnrIQ" target="_blank">http://bit.ly/13YnrIQ</a></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=96"><![CDATA[Jobangebote & Gesuche]]></category>
			<dc:creator>ictjob</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4478</guid>
		</item>
		<item>
			<title>Dragging dockables out of (into) CWorkingArea</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4477&amp;goto=newpost</link>
			<pubDate>Fri, 24 May 2013 11:49:35 GMT</pubDate>
			<description>Hi Beni, 
 
I would like to have a CWorkingArea that allows dragging dockables out of it and dragging dockables into it from outside. 
I looked at...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi Beni,<br />
<br />
I would like to have a CWorkingArea that allows dragging dockables out of it and dragging dockables into it from outside.<br />
I looked at tutorial.common.basics.OpeningEditorsExample and changed line 34:<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:52px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">final</span> CWorkingArea work <span style="color: #339933;">=</span> control.<span style="color: #006633;">createWorkingArea</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;work&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight -->with:<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:196px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">final</span> CWorkingArea work <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> CWorkingArea<span style="color: #009900;">&#40;</span>control, <span style="color: #0000ff;">&quot;work&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> isWorkingArea<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">control.<span style="color: #006633;">addDockable</span><span style="color: #009900;">&#40;</span>work<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">control.<span style="color: #006633;">addStation</span><span style="color: #009900;">&#40;</span>work, <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight -->It looks a bit hacky, is there another proper way to get such working area?<br />
<br />
I also found a bug while running the above example.<br />
You can run the original code from the tutorial:<br />
1. open two editors, they are stacked in the working area (Editor 0, Editor 1)<br />
2. externalize the editor stack<br />
3. drag one of the dockables from inside main window (Outline or Console) onto the editor stack.<br />
4. you now have two editors and one additional dockable in an external stack.<br />
5. press the unexternalize button, the 3rd dockable comes back to main window, the editors disappear.<br />
<br />
If you run with my modification you get an exception:<br />
java.lang.IllegalStateException: the parent of 'bibliothek.gui.dock.common.intern.DefaultCommonDo  ckable@6ecec5' is not 'bibliothek.gui.dock.StackDockStation@1d06d02' but 'null'<br />
<br />
kind regards,<br />
Maciej Modelski</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=69">DockingFrames</category>
			<dc:creator>mmodelski</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4477</guid>
		</item>
		<item>
			<title>Laufanimation mit Thread.sleep();</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4476&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 17:04:05 GMT</pubDate>
			<description>Hallo,  
ich habe eine provisorische Laufanimation programmiert, die ich erst vollständig zum laufen bringen will, bevor ich sie woanders...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hallo, <br />
ich habe eine provisorische Laufanimation programmiert, die ich erst vollständig zum laufen bringen will, bevor ich sie woanders einbaue.Momentan stehe ich auf dem Schlauch, denn:<br />
1.Ich bekomme im Compiler folgende seltsame Fehlermeldungen:<br />
   <br />
LaufAnimation.java:70:9: error: unreachable statement<br />
        Thread.sleep(500);<br />
        ^<br />
LaufAnimation.java:70:9: error: unreachable statement<br />
        try { <br />
        ^<br />
<br />
         ^<br />
2 errors<br />
<br />
2.Bei früheren tests mit dieser Methode ergab es sich, dass das Programm erst alle sleeps() zusammen gerechnet, und anschliessend gewartet und erst dann, das letzte Bild der Animation angezeigt hat.<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_highlight -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Java Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:90%; height:676px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="java" style="font-family: monospace;"><ol><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.swing.*</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.imageio.*</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.*</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.*</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.awt.event.*</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> LaufAnimation<span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #666666; font-style: italic;">//VARIABLEN</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AImage+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Image</span></a> background<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AImage+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Image</span></a> spieler<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&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;">int</span> spXposakt <span style="color: #339933;">=</span> <span style="color: #cc66cc;">600</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&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;">int</span> spYposakt <span style="color: #339933;">=</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a> f<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AContainer+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Container</span></a> panel<span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> MS_LA ml_animation <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MS_LA<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AImage+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Image</span></a> la<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AImage+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Image</span></a><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> LaufAnimation l <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> LaufAnimation<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #666666; font-style: italic;">//FENSTER START</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">public</span> LaufAnimation<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&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> erstelleFenster<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJFrame+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JFrame</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Lauf-Animation&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">setDefaultCloseOperation</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AWindowConstants+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">WindowConstants</span></a>.<span style="color: #006633;">EXIT_ON_CLOSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; panel <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Animation<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">setSize</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1000</span>, <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">getContentPane</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span>panel, <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ABorderLayout+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">BorderLayout</span></a>.<span style="color: #006633;">CENTER</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">pack</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">setLocationRelativeTo</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">setVisible</span><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></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; l.<span style="color: #006633;">laden</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; f.<span style="color: #006633;">addMouseListener</span><span style="color: #009900;">&#40;</span>ml_animation<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&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: #000000; font-weight: bold;">final</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><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></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ARunnable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Runnable</span></a> gui <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ARunnable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Runnable</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; erstelleFenster<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASwingUtilities+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">SwingUtilities</span></a>.<span style="color: #006633;">invokeLater</span><span style="color: #009900;">&#40;</span>gui<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&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> laden<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; la<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> ImageIO.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span>LaufAnimation.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getResource</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;LA&quot;</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; i<span style="color: #339933;">++;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AIOException+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">IOException</span></a> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">class</span> MS_LA <span style="color: #000000; font-weight: bold;">implements</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseListener+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseListener</span></a><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseClicked<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> c <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> klickPosX <span style="color: #339933;">=</span> e.<span style="color: #006633;">getX</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">int</span> klickPosY <span style="color: #339933;">=</span> e.<span style="color: #006633;">getY</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//Laufen</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>spXposakt <span style="color: #339933;">&lt;</span> klickPosX <span style="color: #339933;">&amp;&amp;</span> spYposakt <span style="color: #339933;">&lt;</span> klickPosY<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; spXposakt <span style="color: #339933;">=</span> spXposakt <span style="color: #cc66cc;">+50</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; spYposakt <span style="color: #339933;">=</span> spYposakt <span style="color: #cc66cc;">+50</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spieler <span style="color: #339933;">=</span> la<span style="color: #009900;">&#91;</span>c<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c<span style="color: #339933;">++;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>c <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AThread+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Thread</span></a>.<span style="color: #006633;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AException+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Exception</span></a> ie<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; f.<span style="color: #006633;">repaint</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseEntered<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseExited<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mousePressed<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> mouseReleased<span style="color: #009900;">&#40;</span><a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AMouseEvent+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">MouseEvent</span></a> e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">class</span> Animation <span style="color: #000000; font-weight: bold;">extends</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AJPanel+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">JPanel</span></a><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; Animation<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; @Override</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> paintComponent<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> <a target="_blank" &nbsp;href="http://www.google.com/search?hl=en&amp;q=allinurl%3AGraphics+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Graphics</span></a> g<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">paintComponent</span><span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; g.<span style="color: #006633;">drawImage</span><span style="color: #009900;">&#40;</span>background, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">1600</span>, <span style="color: #cc66cc;">855</span>, <span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; g.<span style="color: #006633;">drawImage</span><span style="color: #009900;">&#40;</span>spieler, spXposakt, spYposakt, <span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> &nbsp;</div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #009900;">&#125;</span></div></li></ol></div></div></pre>
</div>
<!-- END TEMPLATE: bbcode_highlight -->Ich hoffe jemand kann mir einen Denkanstoß in die richtige Richtung geben.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=13">Java Standard Edition (J2SE)</category>
			<dc:creator>Zombiepriester</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4476</guid>
		</item>
		<item>
			<title>Is it possible to bind some matrix/FFT GPU-accelerated library to JOCL</title>
			<link>http://forum.byte-welt.net/showthread.php?t=4475&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 11:29:45 GMT</pubDate>
			<description>Hello, 
I was playing with the sample codes of JOCL and I also wrote some by myself and ported some from other tutorials to JOCL (like NBody...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hello,<br />
I was playing with the sample codes of JOCL and I also wrote some by myself and ported some from other tutorials to JOCL (like NBody problem).<br />
<br />
However I think for very common mathemtical/numerical taks it would be better to use some well optimized code developed by some experts than try to write it by myself.<br />
<br />
So I wonder if there is some possibility to use some 3rd party OpenCL libraris in JOCL for taks like<br />
matrix operation ( multiplication, LU decomposition, inversion, solution of system of linear equation, eigenvalue ) and FFT.<br />
<br />
for example libraries like this:<br />
<a href="http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-math-libraries/" target="_blank">http://developer.amd.com/tools-and-s...ath-libraries/</a><br />
<br />
The problem is that these libraries are in C, and I don't want to do development in C just because of that. I'm currently working with jMonkey and LWJGL and I like it very much including the JOCL support. However, some well optimized prefabricated GPU accelerated mathematical library would be very welcome. a</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://forum.byte-welt.net/forumdisplay.php?f=91">JOCL</category>
			<dc:creator>Prokop Hapala</dc:creator>
			<guid isPermaLink="true">http://forum.byte-welt.net/showthread.php?t=4475</guid>
		</item>
	</channel>
</rss>
