Questions tagged [glasspane]

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.

101 questions
2
votes
2 answers

Java Swing - Flashing icon not showing up

I am trying to flash the icon to the user using a GlassPane. I am running a javax.swing.Timer which basically performs this: for (int i = 0; i < 3; i++) { frame.getGlassPane().setVisible(true); try { Thread.sleep(500); } catch…
Bober02
  • 15,034
  • 31
  • 92
  • 178
2
votes
1 answer

Setting waitcursor on glasspane doesn't work in Dialog

I have an app that sometimes kicks off a long-running process in a background thread. If it does this from the main app, I set the wait cursor like this: oldCursor =…
CasaDelGato
  • 603
  • 7
  • 17
1
vote
1 answer

How to set postion to a glass pane in a JFrame and JPanel

I want to show a glasspane over my JFrame. I could do that and now my problem is, the glasspane is visible on the top left corner. I want to know how to set glass pane's position as I want(A given location in a JFrame or a JPanel on a JFrame). I…
Débora
  • 5,816
  • 28
  • 99
  • 171
1
vote
0 answers

Java Swing - Show glasspane and consume events without losing previous focus owner

We are trying to show the user a milky JGlassPane to indicate that events are currently not accepted, due to a progress-bar or something else currently being shown. While this would usually automatically work, since we are showing a modal dialog, we…
Niklas
  • 31
  • 6
1
vote
1 answer

Show InternalFrame in front of Glasspane

I want an InternalFrame to be shown in front of a GlassPane. In my program the user should be able to click on FILE -> Settings and an InternalFrame should be displayed. Everything in the background should be covered with a GlassPane. Does somebody…
1
vote
2 answers

Java Swing GlassPane Drag Performance

I'm trying to do a visual drag and drop in my Swing application using a GlassPane, but am running into the problem that the drag image lags behind the mouse pointer, sometimes considerably. How do I solve this? My GlassPane code is below.…
Frobba Bobba
  • 45
  • 1
  • 7
1
vote
1 answer

Draw Image of Userinterface onto Glasspane

I'm trying to draw a modified version of my GUI onto the Glasspane. My idea is to have a panel where I override the paint function, but when I trysomething like glass = frame.getGlasspane(); glass.draw(g); I get a Nullpointer Exception, even though…
Dimitri
  • 165
  • 8
1
vote
1 answer

Gluon mobile 5 layer does not hide

I've created a busy layer showing an animating progress indicator while background IO is busy. The layer is added to the glasspane in Gluon mobile 4: BusyLayer extends Layer { ... root = new FlowPane(new ProgressIndicator()); …
tbeernot
  • 2,473
  • 4
  • 24
  • 31
1
vote
0 answers

Swing: GlassPane and the custom painted semitransparent Buttons

I have a short toolbar at the left side of my application. When user points this toolbar, I open a semitransparent full toolbar (I use GlassPane to do it). All except semitransparency works fine. Here is the screenshot of my example program: As you…
Sergiy Medvynskyy
  • 11,160
  • 1
  • 32
  • 48
1
vote
2 answers

"Whiteout" entire swing GUI except from one component

[This question is in relation to this question] Setting: I have this home-crafted "editable label" component which looks like a label, but when you click it, it turns into an editable field, allowing you to edit it. You can hit Esc to cancel, or…
stolsvik
  • 5,253
  • 7
  • 43
  • 52
1
vote
4 answers

Block entire swing ui except for one component - "dialog style"

[This question is in relation to this question] Setting: I have this home-crafted "editable label" component which looks like a label, but when you click it, it turns into an editable field, allowing you to edit it. You can hit Esc to cancel, or…
stolsvik
  • 5,253
  • 7
  • 43
  • 52
1
vote
1 answer

Java: "please wait" GlassPane not correctly loaded

I have a java routine that takes several second to be completed. I'd like to load a GlassPane (possibly with a "prease wait" message inside) that prevents the user to modify the UI while that routine is under execution and that is automatically…
Roberto
  • 243
  • 1
  • 5
  • 15
1
vote
1 answer

Glasspane does not work, java

I have been working on a little java application, and I wanted to add a waiting graphics on the glasspane of the rootpane of the application, here is the classes: public class WaitPanel extends JPanel { public WaitPanel() { this.setLayout(new…
Simo
  • 195
  • 1
  • 16
1
vote
0 answers

java glasspane does not update

I have a little problem in my code. It should display the glasspane as soon as I click on the udpate button. But it doesnt and I dont know why. If I setVisibility(true) to the glasspane in the constuctor it works. Can anyone help me please? Here is…
jor
  • 158
  • 1
  • 13
1
vote
1 answer

Java GlassPanel clear transparent background

I want to render something on my GlassPane. The problem is, that if i move the rendered lines around, the previously rendered pixels have still the same color. I can not use g.clearRect because it doesn`t clears the transparency. Thats my rendering…
bitQUAKE
  • 473
  • 1
  • 8
  • 19