Swing JApplet - selected component in ContentPane get display in GlassPane - Why?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Phuong_Tran
Posted On:   Tuesday, August 21, 2001 01:17 PM

I have a JApplet that contains : - The ContentPane have a JTable and some JButtons. - A JMenuBar (have actionPerformed that set up the GlassPane) - The GlassPane have a JTable and some JButtons. Here are the sequence of event : 1. I select a button or a cell in the ContentPane 2. I then click on the menu to activate the GlassPane. The GlassPane show up as expected 3. But when I select any components in the GlassPane, the components that I previously selected in the ContentPane (in step 1) also show up. Why is this happening. How do I prevent the components in the    More>>

I have a JApplet that contains :


- The ContentPane have a JTable and some JButtons.


- A JMenuBar (have actionPerformed that set up the GlassPane)


- The GlassPane have a JTable and some JButtons.



Here are the sequence of event :


1. I select a button or a cell in the ContentPane


2. I then click on the menu to activate the GlassPane.
The GlassPane show up as expected


3. But when I select any components in the GlassPane,
the components that I previously selected in the
ContentPane (in step 1) also show up.


Why is this happening. How do I prevent the components in the
ContentPane show up while I am displaying the GlassPane.


Thanks

   <<Less
About | Sitemap | Contact