This is the problem I came across .
I built an application which i run using jdk1.3 and java3d 1.2. Without interface the application works okay. However, when I add an interface to the application there came the problem. I add a Menu bar to the Jframe, put the Canvas in the Jframe.getContentPane() CENTER (using the BorderLayout), and put a JPanel component in the SOUTH of the Jframe.getContentPane(); In one of the menu I use JOptionPane class (i.e. the JOptionPane.showOptionDialog method) to show a dialog on the surface of the Canvas that contains some inputs (JTextField class). When I start the application everything is okay. The problem is that whenever I interact with the interface (that is, change the menu item, moving from one menu to another, input some text and press return key) the Canvas area is repainted (there is a moment that the CANVAS area is blank.). However, the JPanel area in the same JFrame (Canvas is in the CENTER, JPanel is in the South) does not repaint. When I press one menuitem, it bring up the Dialog through JOptionPane.showOptionDialog on the surface of the Canvas, you can input something in the Dialog. The problem is the same as I described before, that is, the Canvas area flash blank and then come back whenever the application process something. If you do not interact the the application it look okay. In my case it does not crash totally. Since I only find the problem yesterday, I did not figure out the reason. I doubt if it is relevant to the underlying rendering process. Any ideas from you? Thanks Liming Ashish Tayal wrote: Hi all, |
- [JAVA3D] How can I project a Swing components onto a J3D s... Stefan Bühlmann
- [JAVA3D] Canvas3D in JInternalFrame gives physical du... Ashish Tayal
- Liming CHEN