Click to See Complete Forum and Search --> : The menu lays behind the scrollPane ! WHY ?


May 2nd, 2000, 03:39 PM
Hi,

I use the Swing components the first time ... and here is my problem:

My JFrame contains a menu bar and a JScrollPane. When I use the menu (pull down) it lays behind the scrollPane. What must I do that the menu
lays ahead of the scrollPane?

Thanks a lot!

bharath
May 3rd, 2000, 01:31 AM
hai,

The problem is because of the Heavy weight and light weight components.
JScrollPane by default come with light weight,
There is an option in the Menu, menubar which ill make the component light or heavy.

Plz. check the api. for further det.
-bharath







S.V Bharath Reddy
Software Engineer,
Hyderabad.