<!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 error description.<SPAN
class=843332209-03102007> It's 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> </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> </P>
<P align=left><FONT color=#000000><FONT face=Arial><FONT size=2><SPAN
class=843332209-03102007> </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 <SPAN class=906552507-03102007>create & </SPAN><SPAN
class=906552507-03102007>run</SPAN> <SPAN
class=906552507-03102007>the</SPAN> JAR File -><BR>After I doubleclick the
JAR File, nothing happens. (But when I remove the Panel with the vtk render
window <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> </P>
<P align=left><FONT face=Arial><FONT color=#000000><SPAN
class=906552507-03102007><FONT size=2>Here</FONT></SPAN> </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> SpecPanel
oPanel = new SpecPanel();<BR> <BR> JFrame frame = new
JFrame("3D Spectrogramm");<BR> frame.getContentPane().setLayout(new
GridLayout(1,1));<BR> frame.addWindowListener(new WindowAdapter()
<BR> {<BR> public void
windowClosing(WindowEvent e) {System.exit(0);}<BR> });<SPAN
class=843332209-03102007><FONT
color=#0000ff> </FONT></SPAN></FONT></FONT></FONT><FONT color=#000000><SPAN
class=843332209-03102007><FONT face=Arial color=#000000
size=2><BR> frame.getContentPane().add(<FONT color=#2a00ff>"Center"</FONT>,
oPanel);<BR> frame.pack();<BR> frame.setBounds(100, 100, 1000,
1000);<BR> 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> </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> Spectrogramm spec
= new Spectrogramm( 100, 100, 100 ); // creates a VTK modell<BR>
<BR> public SpecPanel()<BR>
{ <BR> <BR> //Set Panel
Layout<BR> setLayout(new
BorderLayout());<BR> <BR> //Get the
Canvas<BR> vtkCanvas oCanvas =
spec.getSpectrogrammCanvas();</FONT></P>
<P align=left><FONT face=Arial color=#000000 size=2> //Set
Camera on Canvas<BR>
oCanvas.GetRenderer().ResetCamera();<BR>
<BR> //Size the Canvas<BR>
oCanvas.setSize(1000, 1000);<BR> <BR> //Add
Canvas to Panel<BR> this.add(oCanvas,
BorderLayout.CENTER);<BR>
}<BR>}</FONT></FONT></P></DIV></BODY></HTML>