JXLayer implementation

Want to use JXLayer to block my GUI when some worker thread is running. I guess it was that simple:

JPanel panel = getMyPanel();       
LockableUI lockableUI = new LockableUI();        
JXLayer l = new JXLayer(panel, lockableUI);        
lockableUI.setLocked(false);
add(l);

      

the first error is that the getMyPanel () function is undefined by default. I added jxlayer3-0.jar

I need a panel that I want to lock ... so if I switch the first line with:

JPanel p =(JPanel) getContentPane();

      

but then I get a warning that I am adding the parent container to it myself. Can't find any documentation for JXLayer

+3
java swing


source to share


No one has answered this question yet

See similar questions:

4
How to disable all components in a JPanel
3
Rotating the JTextField vertically
2
Safe Runtime Effect for Java Application
2
Swing: pass events to children of transformed parent
2
Java rotating non-square JPanel component

or similar:

1989
"implements Runnable" vs "extends Thread" in Java
791
What is an efficient way to implement singleton pattern in Java?
sixteen
Draw string in JPanel with button click in Java
12
How do I know if I am in the event dispatch thread?
nine
How do I remove a JPanel from a JFrame?
4
List of JPanels that end up using the scrollbar
0
How to add graphics to JPanel in Java
0
Incorrect swing changes
0
CardLayout removes old panels when information is updated
0
make another frame class setvisible (false) on button click



All Articles
Loading...
X
Show
Funny
Dev
Pics