-
Setting size of Label in FlowLayout
Hi, I have a bunch of lables in a flowlayout.
I want to have these labels start with nothing in them but have a white background. So i dont want them resizing to nothing cause theres no text in them. setSize doesnt work. They are in a flowlayout.
I haerd about setPrefferedSize but dont know how or if it works.
any ideas? Thx
-
I'd say setBounds() but I'm not sure how that would work with flow layout.
otherwise you would have to set all these
setPreferredSize()
setMinimumSize()
setMaximumSize()
the layout decides which it uses so set them all to be safe.
Similar Threads
-
By xsouldeath in forum Java
Replies: 0
Last Post: 12-10-2005, 10:56 PM
-
By DrunkinP in forum Java
Replies: 0
Last Post: 03-31-2005, 09:36 AM
-
By Bobby in forum VB Classic
Replies: 0
Last Post: 07-22-2002, 11:52 AM
-
By newToJava in forum Java
Replies: 2
Last Post: 03-07-2001, 08:25 PM
-
Replies: 0
Last Post: 12-13-2000, 09:35 PM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks