<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#3f7f5f>
<P align=left><FONT color=#000000><FONT face=Arial><FONT size=2><SPAN 
class=843332209-03102007><FONT 
color=#0000ff>***Update***</FONT></SPAN></FONT></FONT></FONT></P>
<P align=left><FONT><FONT><FONT color=#0000ff><SPAN 
class=843332209-03102007><FONT face=Arial size=2>I missed to copy </FONT><FONT 
size=2><FONT face=Arial>the lower part of main function</FONT><FONT face=Arial> 
into to the&nbsp;error description.<SPAN 
class=843332209-03102007>&nbsp;It's&nbsp;corrected in the following code. But 
the problem still isn't solved.</SPAN></FONT></FONT><FONT size=2><FONT 
face=Arial></P></FONT></FONT></SPAN></FONT></FONT></FONT>
<P align=left><FONT><FONT face=Arial><FONT color=#0000ff size=2><SPAN 
class=843332209-03102007>**************</SPAN></FONT></FONT></FONT><FONT 
color=#000000><FONT face=Arial><FONT size=2><SPAN 
class=843332209-03102007>&nbsp;</SPAN></FONT></FONT></FONT></P>
<P align=left><FONT color=#000000><FONT face=Arial><FONT size=2><SPAN 
class=843332209-03102007></SPAN></FONT></FONT></FONT>&nbsp;</P>
<P align=left><FONT color=#000000><FONT face=Arial><FONT size=2><SPAN 
class=843332209-03102007>&nbsp;</SPAN>Good Morning<SPAN 
class=906552507-03102007> vtk users</SPAN>!</FONT></FONT></FONT></P>
<P align=left><FONT face=Arial color=#000000 size=2>I'm a VTK beginner. I just 
have installed vtk and wrote my first application in Java on Eclipse<SPAN 
class=906552507-03102007> (on WinXP)</SPAN>. I display the render window in a 
JPanel which is added to a JFrame. When compiling everything works fine till I 
try to&nbsp;<SPAN class=906552507-03102007>create &amp; </SPAN><SPAN 
class=906552507-03102007>run</SPAN>&nbsp;<SPAN 
class=906552507-03102007>the</SPAN> JAR File -&gt;<BR>After I doubleclick the 
JAR File, nothing happens. (But when I remove the Panel with the vtk render 
window&nbsp;<SPAN class=906552507-03102007>the</SPAN> empty Frame appears<SPAN 
class=906552507-03102007>, correctly</SPAN>.) </FONT></P>
<P align=left><FONT face=Arial><FONT color=#000000><FONT size=2>What am I doing 
wrong, why doesnt my JAR File show me the render window?<SPAN 
class=906552507-03102007> I would be glad about some quick 
help.</SPAN></FONT></FONT></FONT><SPAN class=906552507-03102007></P>
<P align=left><FONT face=Arial><FONT color=#000000><FONT size=2><SPAN 
class=906552507-03102007>Thanks.</SPAN></FONT></FONT></FONT></P>
<P align=left><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN 
class=906552507-03102007>Sincerely, </SPAN>Marc<SPAN class=906552507-03102007> 
Meidinger</SPAN></FONT></FONT></FONT></SPAN></P>
<P align=left><SPAN class=906552507-03102007><FONT face=Arial color=#000000 
size=2></FONT></SPAN>&nbsp;</P>
<P align=left><FONT face=Arial><FONT color=#000000><SPAN 
class=906552507-03102007><FONT size=2>Here</FONT></SPAN>&nbsp;</FONT><FONT 
size=2><FONT color=#000000>is the main method which creates the JFrame and the 
JPanel class which displays the vtk Modell (from Spectrogramm)</FONT> 
</FONT></FONT></P>
<P align=left><FONT color=#000000><FONT face=Arial><FONT size=2>// the main 
function<BR>public static void main (String[] args)<BR>{ <BR>&nbsp;SpecPanel 
oPanel = new SpecPanel();<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;JFrame frame = new 
JFrame("3D Spectrogramm");<BR>&nbsp;frame.getContentPane().setLayout(new 
GridLayout(1,1));<BR>&nbsp;frame.addWindowListener(new WindowAdapter() 
<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; public void 
windowClosing(WindowEvent e) {System.exit(0);}<BR>&nbsp;&nbsp; });<SPAN 
class=843332209-03102007><FONT 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></FONT><FONT color=#000000><SPAN 
class=843332209-03102007><FONT face=Arial color=#000000 
size=2><BR>&nbsp;frame.getContentPane().add(<FONT color=#2a00ff>"Center"</FONT>, 
oPanel);<BR>&nbsp;frame.pack();<BR>&nbsp;frame.setBounds(100, 100, 1000, 
1000);<BR>&nbsp;frame.setVisible(true);</FONT></SPAN></FONT><FONT 
color=#000000><BR><FONT face=Arial size=2>}</FONT></FONT></P>
<P align=left><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</P>
<P align=left><FONT face=Arial color=#000000 size=2>package 
HelloVtkMain;<BR>import java.awt.BorderLayout;<BR>import 
java.awt.GridLayout;<BR>import java.awt.event.WindowAdapter;<BR>import 
java.awt.event.WindowEvent;<BR>import javax.swing.*;<BR>import vtk.*;</FONT></P>
<P align=left><FONT face=Arial color=#000000 size=2>public class SpecPanel 
extends JPanel {</FONT></P>
<P align=left><FONT face=Arial color=#000000 size=2><BR>&nbsp; Spectrogramm spec 
= new Spectrogramm( 100, 100, 100 ); // creates a VTK modell<BR>&nbsp;&nbsp; 
<BR>&nbsp;&nbsp; public SpecPanel()<BR>&nbsp;&nbsp; 
{&nbsp;&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; //Set Panel 
Layout<BR>&nbsp;&nbsp;&nbsp; setLayout(new 
BorderLayout());<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; //Get the 
Canvas<BR>&nbsp;&nbsp;&nbsp; vtkCanvas oCanvas = 
spec.getSpectrogrammCanvas();</FONT></P>
<P align=left><FONT face=Arial color=#000000 size=2>&nbsp;&nbsp;&nbsp; //Set 
Camera on Canvas<BR>&nbsp;&nbsp;&nbsp; 
oCanvas.GetRenderer().ResetCamera();<BR>&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp; //Size the Canvas<BR>&nbsp;&nbsp;&nbsp; 
oCanvas.setSize(1000, 1000);<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; //Add 
Canvas to Panel<BR>&nbsp;&nbsp;&nbsp; this.add(oCanvas, 
BorderLayout.CENTER);<BR>&nbsp;&nbsp; 
}<BR>}</FONT></FONT></P></DIV></BODY></HTML>