i have a question about JFrame. is there anyway to set the size of frame as automatic depending about the values in the frame.so if the values is a lot more than what is expected that frame adjust it self it fit all the data ?
spywx2003
0
Newbie Poster
Recommended Answers
Jump to PostA frame will size itself according to the components contained within. Whether that answers your question about the "data" remains to be seen (since I, obviously, have no idea how your displaying that "data"). But, as a hunch, no, you do not have to use setSize() on a JFrame.
Jump to Postin fact the setSize method usually has no effect whatsoever as the frame will automatically resize itself according to the sizes of the components it contains.
All 6 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
spywx2003
0
Newbie Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.