This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Adding glassPane to a particular Panel in the window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding glassPane to a particular Panel in the window" Watch "Adding glassPane to a particular Panel in the window" New topic
Author

Adding glassPane to a particular Panel in the window

karthik devkam
Greenhorn

Joined: Jan 15, 2002
Posts: 4
In a window I have more than one panel , In that
situation I want add glasspane to a particular panel, it is not possible the entire window will be covered by the glass pane.

Is it possible to set the glass panel for a
particular panel in a window. If so, Please
send the sample code
thanks in advace
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

karthik,

Please re-register with a new user name that follows the conventions in the JavaRanch UserName Convention... User names are required to be in the format "First Name" + space + "Last Name" and they can not be obviously fake.

Thank you,

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

In an answer to your question, no... the glass pane is for the whole frame. However, you can fake it by only acting on events within the bounds of the Panel you want the glass pane to affect and passing the rest of the events through.

-Nate
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding glassPane to a particular Panel in the window
 
Similar Threads
Issues arising from Glass Pane
Problem with tabbing behind glasspane
Issue regarding Glass Pane
How to place components beneath tabs in right oriented JTabbedPane
Glasspanes and tooltips