[5072] in java-interest

home help back first fref pref prev next nref lref last post

Re: Bigger buttons needed

daemon@ATHENA.MIT.EDU (Amy Fowler)
Sun Jan 28 03:23:11 1996

Date: Sat, 27 Jan 1996 14:22:03 -0800
From: Amy.Fowler@Eng.Sun.COM (Amy Fowler)
To: java-interest-digest@java.Eng.Sun.COM, Paul.Bohnenkamp@corp.sun.com


>>How do I increase the size of the buttons I'm using?
>>
>>     /**
>>     * Add buttons to bottom panel.
>>     */
>>    bp = new Panel();
>>    bp.add(new Button("Select"));
>>    bp.add(new Button("Clear"));
>>    add("South", bp);

Hi Paul,

Why do you want to increase their size?  (I ask because the
ansewr could depend on what your true goal is)  Are you
looking to increase the font size?  do you just want them
all to be the *same* size?  Do you want them to grow/shrink
in proportion to your panel/window?

In general it's not wise to hardwire the size/placement
of components containing text (because string/font changes
could cause the contents to be cropped) but I realize there
are always exceptions to such rules.

If you send a bit more info about the effect you are after
I'll see if I can help --

Regards,
Amy Moore-Fowler
Java Products Group
Sun Microsystems, Inc.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post