How do you make a component with the function
Appear on what ever window your main window is on?
You can call setBounds on windows as well, since they are strictly speaking Components.
To know the bounds of the screens, you can query the desktop using getDisplays()
But there is also a method in component: getParentMonitorArea()
Hope that helps