java - How can I add a popup notification using Swing inside the JFrame? -


I have to add a notification to display my swing application only for incomming messages, I am inside Jframe with GeFanel I try to, but when I have covered this main window

this is a part of my code

  increases the public class menu JFrame {Private Zero Creation UI () {set layout (new border layout ()); Add (getDesktopPane (), BorderLayout.CENTER); Add (getStatusBar (), border layout. SOTH); Add (getNotificationsPanel ()); }}  

and my idea of ​​notification:

 Enter image details here

The notification is a JPNL but it is blocking the view of Jeffrera.

This is: addition (component) on one component with border layout; Calling add (component, borderlayout.CENTER) is similar to calling; .

Therefore, your notification panel is blocking the center view of the frame.

More info here:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -