Display popup (JWindow) inside screen whenever it goes outside of the screen

81 Views Asked by At

I have created a simple autocomplete composed of JTextfield and JWindow (as a popup).
Everything works fine except when I display the popup on bottom it goes outside of the screen (see the pictures):
enter image description here

enter image description here

Is there a way to make it visible inside the screen always ?

0

There are 0 best solutions below