The glass pane, which is used in Java, is useful, when you want to be able to catch events or paint over an area that already contains one or more components.
Questions tagged [glasspane]
101 questions
0
votes
2 answers
Glass pane disapear after repaint
I have problem with glass pane. When I first show my panel everything is OK. But when I want to repaint this panel because components should change (method createPanel() ) then glass panel dissapear. When I resize frame then it is again visible. I…

hudi
- 15,555
- 47
- 142
- 246
0
votes
0 answers
Create blocking glass pane show method
I've created a modal dialog inside a JFrame using the glass pane. My display method is quite simple: it creates a JPanel as glass pane with some alpha background and adds the JLabel and an ok and close button. Then the glass pane is set and…

mythbu
- 657
- 2
- 7
- 16
0
votes
2 answers
Drawing on JPanel behind GlassPane when clicking on GlassPane
Okay So I looked through multiple forums and Google and couldn't find an answer to my specific problem. So I have two panels stacked on top of each other and the one on top is a glassPane. When you drag your mouse around the glassPane it draws a…

staticFlow
- 141
- 1
- 2
- 13
0
votes
1 answer
Drawing on a JPanel without repainting background
I have an algorithm that displays pretty fractals on a JPanel. I want to be able to show gridline 'crosshairs' on the fractal panel whenever a user hovers his mouse on the panel.
I have achieved this with a quick, simple method for drawing on stuff…

Chris Watts
- 6,197
- 7
- 49
- 98
0
votes
1 answer
Drawing directly on glasspane: not working
I am developing an app using Swing. While user interact with the app, help data may become available in a closed section of the screen, and I'd like to draw a small arrow pointing to that section when this happens.
To do this, I extended a JPanel…

Roberto Barra
- 25
- 6
0
votes
1 answer
Swing: Paint over all other components and preserve events
What I am trying to do: draw a vertical line and a horizontal line that are perpendicular to each other and meet where the mouse points. A sort of cursor tracker.
My structure: JFrame -> CustomPanel -> other panels/components etc.
CustomPanel…

async
- 1,537
- 11
- 28
0
votes
2 answers
JLayeredPane with transparent layer causes incorrect drawing
I have a JLayeredPane that has two layers. The top level is fully transparent and acts as a glass pane that captures mouse events and then dispatches them to the pane beneath it. The bottom layer does not draw correctly for an unknown reason. Do I…

smuggledPancakes
- 9,881
- 20
- 74
- 113
0
votes
1 answer
Java Swing GlassPane functionality for individual panels?
I have built a simple interface that fills my entire JFrame. I am using a version of the class FinalGlassPane discovered on the internet here.
This glass pane has no regular event listeners, but it monitors the AWTEvents of it's underlying…

Ralph Oreg
- 233
- 1
- 2
- 10
0
votes
1 answer
JFilechooser "Look In" Drop down Does Not Appear on Frame GlassPane
So I have been having some problems with the JFilechooser in my swing app, and my troubleshooting hasn't been getting me anywhere.
I have be able to embed the file chooser into a panel inside my application.
the problem is the drop-down button to…

Sammy Guergachi
- 1,986
- 4
- 26
- 52
0
votes
2 answers
JTabbedPane spacing
Original Top tab orientation setting:
http://dl.dropbox.com/u/3238736/screenshots/Screenshot-PasswordStore-1.png
Problematic Right tab orientation setting:
From the GUI above, my JTabbedPane (the blue colour tab on the right) is overlapping the…

thotheolh
- 7,040
- 7
- 33
- 49
-1
votes
1 answer
How to make Java Glasspane sticks to a location even if GUI was resized?
Java Glass pane auto resize when I resize the whole interface,but I want to make it stick to a specific location, it will look like this:
Instead of moving around when I resize it.
Thanks

user3576946
- 1
- 1
- 4