Re: Problem with AWT and swing

1998-06-09 Thread sml13
I may be wrong about this, but I believe AWT and Swing componenets are NOT supposed to be mixed like that (layered, that is), unless you want the AWT components to always be on top. This is because (correct me if I'm wrong, someone, but I vaguely recall reading this on one of those Swing tutu

Re: Problem with AWT and swing

1998-06-09 Thread Ulrich Kortenkamp
> "Chetan" == Chetan Kumar <[EMAIL PROTECTED]> writes: Chetan> Now the problem is that when I activate the menu, the Chetan> pulldown menu come behind the canvas. i.e some item of the Chetan> menu are hidden behind the canvas. Hava a look at http://java.sun.com/products/jfc/swin

Re: Problem with AWT and swing

1998-06-09 Thread Rani Pinchuk
Hello. Since the Canvas is heavyweight component (AWT component) it comes above the light components (Swing components) like your pulldown menu. In my opinion the main difference between Canvas and Panel is that Panel extends Container while Canvas doesn't. In Swing, however, JComponent exte

Re: Problem with AWT and swing

1998-06-09 Thread gaolei
Dear Kumar, I remember that long time ago, I also met the problem, and now I could not remember how I fixed this problem very clearly. Maybe I just change some add(xxx) to getContentPane().add(xxx). But I think that the reason of your problem is you add the canvas on the upper layer of the JMenu

Problem with AWT and swing

1998-06-09 Thread Chetan Kumar
Hello, it is same old problem, I am sorry if it is repeated. I tried this. 1) Create a pulldown menu, JMenu. 2) Create a canvas, I did not find swing component for canvas, if there is please letme know. 3) Add canvas to JPanel, 4) Add JPanel and JMenu to Jframe. Now the problem is that when I a