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,
      I have an application which i run using jdk1.3 and java3d 1.2 . In the application i have a Canvas3D put in a JPanel, which in turn is put in JSplitpane, which is in JInternalFrame. So there is an AWT component with the Swing components.
    The problem is that the application pops up for the first time; then whenever i try to make any changes in the UI (dynamically) or minimize/ maximize the internal frame, Window NT crashes ( physical dump) giving a blue screen.
                     Some one told me it is because of mixing AWT and Swing components. I tried to set the preferred size and minimum size of the canvas3D; but to no avail.
Can some one tell me the reason of crashing!

Please help me out..
Ashish
 

The configuration of my machine is Windows NT, pentium 3 processor(800 Mz), 320MB RAM.

Reply via email to