JFrame and vtkPanel

Mykola Khotyaintsev ko at irfu.se
Tue Aug 31 08:44:57 EDT 1999

On Fri, 27 Aug 1999, Paul Hsieh wrote:


The first thing I whant to do is to add vtkPanel to JFrame.
I'v Changed 1) ... extends Frame to ... extends JFrame,
	    2) add(renPanel) to getContentPane().add(renPanel);
in the Java Example.

I get a blank window after execution :(


P.S. I use vtk2.2

> Mykola:
> Yes, this can be done. However, because vtkPanel is a
> heavyweight Component, you have to be careful it doesn't
> block any lightwight component, such as the drop-down
> menu items of the JFrame's menu. To make sure the drop
> down menu items are not blocked, invoke the static method
>    JPopupMenu.setDefaultLightWeightPopupEnabled(false);
> Do this BEFORE you create your JMenuBar. The menu items will 
> then appear in front of the vtkPanel. 
> Paul 
> Mykola Khotyaintsev wrote:
> > 
> > Hello VTK users,
> > 
> > Is there any possibility to insert vtkPanel into JFrame?
> > 
> > Best!
> > 
> > Mykola Khotyaintsev

This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.

More information about the vtkusers mailing list