🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19888

Re: Need Layout Manager Suggestions

#19888
From: Rich Wilkman
Date: Tue, 02 Dec 1997 00:00
37 lines
1936 bytes
Keith:

I'd use GridBagLayout if you need the buttons to be the same size on all
tabs.  If you just want them to be the same size and are satisfied to
have that size be determined by simple division of number of components
in the container, you could use a GridLayout.  GridBag is the best long
term solution (but it'll come with a learning curve).

Since a buttons preferred size keys off it's text, you might be able to
get away with FlowLayout if you stuck to a monospace font and all the
text was the same length.  If there is no text, you would have to make
sure all your images were the exact same size and use the size of the
image to set the size of the button.

-Rich

Keith Thiebaud wrote:
> 
> I have been asked to create a menuing system for a new project.  They have
> asked that it look something like the current Delphi/Java menu that comes
> with the IDE.  What I am looking for  ideas/suggestions on how to handle the
> buttons in the tabpanel.  I need to be able to add icons, keep them the same
> size and have them justify to the left.  Is there a way to do this with the
> layout feature.
> 
> Thanks in advance,
> Keith Thiebaud
> Programmer Spec
> ODOT
> 
> --
> ----------------------------------------------------------------------------
> ------------------------------------------
> Keith Thiebaud  (IT Manager)   @   Ohio Dept Of Transportation, D-11
> WWW SITE:  www.dot.state.oh.us/dist11/index.htm
> INTERNET  :  KThiebau@ODOT.DOT.OHIO.GOV
Technical Details
Message-ID: <348488D1.3097E0EB@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <348453c7.0@dotww001.dot.state.oh.us>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,11cfd2f5bd4e8dd0
X-Google-Attributes: gidf74b3,public
From: Rich Wilkman <rwilkman@corp.borland.com>
Subject: Re: Need Layout Manager Suggestions
Date: 1997/12/02
Message-ID: <348488D1.3097E0EB@corp.borland.com>
X-Deja-AN: 294648850
References: <348453c7.0@dotww001.dot.state.oh.us>
Organization: None
Newsgroups: borland.public.jbuilder.java.language