-
how to auto-size JComponents
Hey all,
I'm sure there's a real easy way to do this so this might sound like a stupid question but... there's got to be a way to get a JComponent to automatically adjust it's width and height such that all its child components are all visible and fit nicely. I need this for both complex components (several levels of subcomponents within it) and simple components (JLabels, JButtons, etc). For the simple components, what I'm looking for is something such that I can call the constructor with an variable sized string, like a JLabel, and have the width automatically set its value so that no "..." appear at the end (ie. the whole string is visible). Any suggestions?
Gib
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|