Cross posted: http://www.java-forums.org/awt-swing...rame-area.html
I have a JFrame with the size 270,400 ,is there a way to make the components added to it change there size to fill the available area within the JFrame??
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Cross posted: http://www.java-forums.org/awt-swing...rame-area.html
I have a JFrame with the size 270,400 ,is there a way to make the components added to it change there size to fill the available area within the JFrame??
Most layout managers do this automatically for you. See: A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)
Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code
questionmark32 (October 9th, 2013)
my program contains border,flow and grid layout, but they only fill the area they require, not the entire area provided
questionmark32 (October 9th, 2013)
This thread has been cross posted here:http://www.java-forums.org/awt-swing/82698-components-fill-frame-area.html
Although cross posting is allowed, for everyone's benefit, please read:
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
copeg (October 9th, 2013), questionmark32 (October 9th, 2013)
Thanks, for adding the link and for the info