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
0
votes
0 answers

GlassPane over an Applet

I've been working on a little Java project of mine and ofcourse I had to run into issues. What i'm trying to do I'm currently trying to use an applet and a glasspane in a JFrame. So I can draw on the glasspane instead of the applet (because I'm…
Frunk
  • 180
  • 1
  • 2
  • 11
0
votes
1 answer

JFrame and GlassPane - Trouble with repaint()

This question may be a simple matter of me lacking a fundamental understanding of Java Swing or Graphics, and if so, I apologize. I'm trying to develop a GUI application using Java Swing that can be controlled by an external device that sends pitch,…
Michael Parker
  • 12,724
  • 5
  • 37
  • 58
0
votes
0 answers

Eraser for Painted Image on Java GlassPane

I have created a GlassPane with the intention to be able to create a tool capable of annotating on the current screen. I am currently using an arrayList of points storing the location of places to color in. That part currently works well. Now I am…
Bryan Ho
  • 13
  • 1
  • 5
0
votes
0 answers

Swing: how to open and attach a new dialog into an existing frame?

I have got a frame in which sometimes a dialog is opened. I would like this dialog to be attached to the existing frame, so for example when I drag that frame the opened dialog follows it. I have heard that this might be possible to achieve using…
user3111525
  • 5,013
  • 9
  • 39
  • 64
0
votes
1 answer

Making a glassPane fit with the dimensions of a JPanel

StackOverflow! I'm working on a project, in regards to making a navigation system, and we're in the beginning stages, working with drawing the map and navigating it itself. We have a function, where you should be able to draw a square on top of the…
Kirluu
  • 13
  • 1
  • 6
0
votes
1 answer

Cyclic repaint issue

I got a pretty big problem. I am writing a GUI with following structure: MainFrame ( MainPanel ( JScrollPane ( ContentPanel ( Content1,Content2,Content3 ) ) ) ) There is also a GlassPane over the MainFrame. There is a Timer in the GlassPane Class,…
Corn
  • 47
  • 7
0
votes
0 answers

Clear a GlassPane for Cursor Subsitute

is there any way to clear a glasspane without having to repaint the other components? I am currently trying to make a cursor substitute, as I cant customize real cursor in the way I would like to do. Therefore it is necessary that the substitute is…
Corn
  • 47
  • 7
0
votes
1 answer

Swing goes into the wait state after locking unlocking through glasspane

I am experiencing a strange situation. On some condition (an inactivity timeout) I have to lock my swing window (and any subwindows) and after unlocking again through valid credentials, I need to unlock them all back. I am using glasspane foe that…
manocha_ak
  • 904
  • 7
  • 19
0
votes
0 answers

jFlashPlayer does not work with glassPane, Java

I am working with jFlashPlayer (currently discontinued by VersaEdge Software). I am displaying the FlashPanel in a jWindow and would like to put a glassPane over it to draw on top of the flash images, but the glassPane does NOT work when the…
Michael
  • 169
  • 2
  • 2
  • 9
0
votes
1 answer

JavaFX: Best practice to implement glasspane-like mouse/touch event receiver which forwards events to underlying controls

My challenge is following situation: I want to add an invisible (opacity 0) pane over the whole application, which receives all mouse and touch events. When an event occurs it resets some kind of activity timer. My first approach (without such pane)…
wassx
  • 333
  • 3
  • 18
0
votes
1 answer

Repaint glass pane before and after a thread does extra processing

I'm attempting to use a glass pane to gray out a frame while a separate thread performs some image processing (img proc). After the img proc thread finishes, the glass pane should go invisible again. I have confirmed that the glass pane is…
vlad417
  • 313
  • 1
  • 3
  • 10
0
votes
1 answer

Java Glass Pane for WPF (C#.NET)

I am building a WPF application in C#.NET and I would like to grey out the window and display a StackPanel in the centre, if a condition is true, like the glass pane in Java. I will be selling my application so I would prefer not that have to ship…
Andy
  • 3,600
  • 12
  • 53
  • 84
0
votes
1 answer

How to convert JGraph to a glass pane?

I have a class :public class GraphEditorPane extends JGraph and I am using this "GraphEditorPane" as follows : public JScrollPane getGraphPaneScrollPane() { if (graphPaneScrollPane == null) { graphPaneScrollPane = new JScrollPane(); …
voidMainReturn
  • 3,339
  • 6
  • 38
  • 66
0
votes
1 answer

JFrame Glasspane is also over JDialog but shouldn't

I have a JFrame (undecorated) with a Glasspane. This Frame opens a JDialog (also undecorated and has also a glassPane) and hides itself (setVisible(false)). The Glasspanes are set with .setGlassPane(). The Dialog is opened with the Frame as…
Martin
  • 155
  • 1
  • 8
0
votes
1 answer

Swing - Swapping and hiding glass pane does not work - glass pane remains visible

I am trying to build a Swing application that shows a login panel as a glasspane if no user is loggeg in. If i try to hide to login glass pane it remains visible, but won't react to any user interactions. Do you see any problems here? public class…
BlackEye
  • 775
  • 11
  • 25