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 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.
Jump to Postmaybe, but that doesn't resize anything on the visible frame, which is what's usually meant by such questions :)
It's also unreliable, depends on what component you're working with and how it's placed.Essentially, one should not depend on hardwiring component sizes.
And indeed, wrap that JTextArea with …
All 6 Replies
masijade 1,351 Industrious Poster Team Colleague Featured Poster
jwenting 1,905 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,905 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.