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 extends Container - as written in the "Swing
Short Course, Part I":
"All JComponents are subclasses of java.awt.Container. This allows Swing
widgets, such as JLabel, to contain other components (either AWT or Swing).
This make for some interesting possibilities."
What I would do in your case is to use JPanel instead of Canvas.
I hope this will help.
Rani
On Tue, Jun 09, 1998 at 11:45:59AM +0530, Chetan Kumar wrote:
>
> 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 activate the menu, the pulldown menu come
> behind the canvas. i.e some item of the menu are hidden behind the canvas.
>
> Any help ??
>
> with thanks
> -Chetan
>
>
--
------------------------------------------------------------------------------
Rani Pinchuk <[EMAIL PROTECTED]> Tel: +32-3-326-79-97
http://www.kinetica.com/home/pinchuk
------------------------------------------------------------------------------