How can I attach a JFrame in the top right to another applications open window and stay with it while resizing? Is it possible?
Here is a diagram of what i would like to accomplish:
Thanks for the help! If this is not possible, are there alternatives?
Ways to get window size/location and set my own jframe accordingly?
You are asking Java to modify an already running non-Java program, and for these types of problems, Java is not the best tool. Please understand that one of Java's main strengths is its ability to run compiled code unchanged on multiple platforms. With this strength comes a weakness: of necessity, Java must be as OS agnostic as possible, and because of this, it is not a good tool when code needs to get cozy with the OS.
Alternatives: just about any other language that can allow easy OS calls.
Don't get me wrong, you can do some similar stuff with Java, but it requires that you jump through hoops that just aren't needed when using other tools.