[5055] in java-interest

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

Re: Bigger buttons needed

daemon@ATHENA.MIT.EDU (Vitaly Promislov)
Sat Jan 27 07:32:19 1996

Date: Sat, 27 Jan 96 14:47:42 ???
From: vitaly@diogen.asc.rssi.ru (Vitaly Promislov)
To: Paul.Bohnenkamp@corp.sun.com
Cc: java-interest@java.sun.com


> From daemon@java.sun.com Sat Jan 27 14:26:53 1996
> From: Paul.Bohnenkamp@corp.sun.com
> Date: Fri, 26 Jan 1996 19:15:32 -0800
> To: java-interest-digest@java.Eng.Sun.COM
> Subject: Bigger buttons needed
> X-Sun-Charset: US-ASCII
> Sender: owner-java-interest@java.sun.com
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
> Content-Length: 343
> 
> How do I increase the size of the buttons I'm using?
> 
>      /**
>      * Add buttons to bottom panel.
>      */
>     bp = new Panel();
      Button b=new Button("Select");
      Font f=new Font("TimesRoman", Font.BOLD, 16);
              b.setFont(f);
>     bp.add(b); // BIG button
>     bp.add(new Button("Clear"));       
>     add("South", bp);
> 
> TIA,
> Paul
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
> 
Check the Component class and setFont()
method. N.B seems the resize(int,int) method would not work for
Button.


Vitaly Promislov
Astro Space Center, Russia    e-mail: vitaly@diogen.asc.rssi.ru
                              fax: 095 333-23-78
                              Phone:   333-23-12
URL: http://diogen.asc.rssi.ru/Vitaly.html
----------------------------------------------------------------------
These are my opinions only, and do not reflect anything
about my employer, Astro Space Center of  Russian Academy of Science.
------------------------------------------------------------------------

  
-
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