Content « JFrame « Java Swing Q&A





1. How to accurately get the coordinates of a JFrame's contents?    stackoverflow.com

This is my JFrame code:

public static int width = 800;
public static int height = 600;

public static void main(String[]args){
    JFrame frame= new JFrame("RETRO");
    frame.add(new Screen());

  ...

2. Accessing JFrame contents    coderanch.com

I am trying to access the contents of a JFrame on a GUI interface but I keep getting to the contents of the overall frame (which I believe is a JInternalFrame). I don't have access to the software that creates these components. How can I access these components sitting on the JFrame? The text is there plain to see on the ...

3. JFrame expanding to fit content    java-forums.org

4. JFrame Content not showing    java-forums.org

Hi I have created a simple JFrame class (called ProgressWindow) that contains a label and a progress bar. Using a simple test program I am able to show the frame and update the progress bar from 0 to 100%. It worked fine. I want to use the ProgressWindow in another application called SMSApplication. The SMSApplication calls a non-windowed class called ModemConnector. ...

5. Shrinking and enlarging contents of JFrame :)    forums.oracle.com

Probably a question for the Swing forum, not the New to Java forum. But I'm really just saying this because I'm not very good with sizing components in Swing. I never understand what makes them fixed size and what allows them to change automatically. I think that Swing components act differently when added directly to the JFrame than if added to ...