[vtkusers] Swing Based vtkPanel

Jeff Lee jeff at cdnorthamerica.com
Tue Mar 5 07:07:47 EST 2002


Hi,
This is a known issue when displaying lightweight swing components with 
heavyweight awt components.  You can search the java web site for a more 
complete answer, but in short you can get the correct behavior by calling
JPopupMenu.setDefaultLightWeightPopupEnabled( false );
before you display any of your swing components.  HTH,
-Jeff

yoshihiko_nagamine at pis.hitachi.co.jp wrote:

>Hello
>
>I am using VTK4.0 via Java on windows 2000.
>In my application, I have attached a menu to JFrame.
>(the layout is shown below figure)
>
>|-------------------------|
>|  Menu Bar                            |
>--------------------------
>|                                            |
>|   vtkPanel                             |
>|                                            |
>|                                            |
>|                                            |
>--------------------------
>
>However, the menu items, such as open, save, exit,
>are blocked by the vtkPanel.
>This may be caused by the mixed use of swing and AWT,
>because I use Swing Component and vtkPanel uses Canvas
>(AWT component).
>
>So my questions are:
>* Dose anybody know/have the vtkPanel or something which
>uses Swing Component?
>
>* Dose anybody know a hint/ have an experience?
>
>Thanks in advance.
>----------------------------------------
>Yoshihiko Nagamine
>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>





More information about the vtkusers mailing list