• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding glassPane to a particular Panel in the window

 
karthik devkam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic