How do I move a Java JFrame partially off my Linux desktop?
        Posted  
        
            by Erick Robertson
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Erick Robertson
        
        
        
        Published on 2010-03-23T21:11:50Z
        Indexed on 
            2010/03/23
            22:03 UTC
        
        
        Read the original article
        Hit count: 414
        
I'm writing a Java application with movable frames, and I've come across a quirk in Linux. I'm running GNOME 2.16.0 under CentOS.
When I use JFrame.setBounds to set the bounds to any location that's half off the screen, it actually sets the location of the frame to be as close as possible to the bounds specified while still staying completely on the screen.
This is confusing because other non-Java windows can move half off the screen.
How do I tell Java to tell GNOME to actually put the frame where I specify, even if that's half off the screen?
© Stack Overflow or respective owner