Location « JFrame « Java Swing Q&A





1. Save JFrame location in multi-display environment    stackoverflow.com

I want to store a JFrame's location (bounds, extendedState) when the user closes it. However, when the user moves the frame onto the 2nd screen and maximizes it, how can I ...

2. How can you generate a JFrame in a Random Location?    stackoverflow.com

As in wen you run any output in a frame, every time you run the program it pops on a different position on the screen?

3. Getting a JFrame's actual current location    stackoverflow.com

I am trying to create a (child) JFrame which slides out from underneath one side of a second (parent) JFrame. The goal is to then have the child follow the parent ...

4. JFrame not appearing on mouse click Location (SSCCE included)    stackoverflow.com

I am trying to make a JFrame appear on mousePressed Location but I keep failing and it get's annoying :( Any ideas what isn't working?

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import ...

5. EDT location with several JFrame window    stackoverflow.com

I have a Swing JFrame. If I create a new JFrame in a new thread during the program execution where will be the EDT ? In the current thread of the ...

7. Displaying Location map on JFrame    coderanch.com

8. JFrame size and location problems    coderanch.com

Rob Camick wrote:> But if I re-poll the window size and position later when the app is closing, the size is different than originally reported even if I don't resize the main window. Post your SSCCE that demonstrates this behaviour. Thanks for the reply Rob. I haven't been able to reproduce this on a smaller scale to 100% satisfaction. But I've ...





10. How to set a location of a JFrame using mouseListener?    forums.oracle.com

The problem is that i want to show my frame where i clicked my mouse but when i get the x,y from the mouselistener getX/Ymethods the frame doesn't show up on the location where i clicked with the mouse, instead it shows the frame in the location x,y NOT relative to the mouse.