Article View: borland.public.jbuilder.java.swing
Article #8085JButton sizing
From: Steven Lazow
Date: Sun, 22 Oct 2000 00:00
Date: Sun, 22 Oct 2000 00:00
10 lines
975 bytes
975 bytes
i am coding a java2 version of the often-coded MineSweeper game. my problem is getting the JButtons small and still having my icons on them. i have found gifs that are 20x20, but when i put them on the JButtons, the resulting button is a large button with a raised button on it. i've tried the following constructors: JButton b = new JButton(Icon,0,0); JButton b = new JButton(Icon); both create the same buttons, a 20x20 button raised on a regular JButton. does anyone have any suggestions?
Technical Details
Message-ID:
<39f38e35$1_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f161651f53628338,start X-Google-Attributes: gid111d45,public From: "Steven Lazow" <slazow@visto.com> Subject: JButton sizing Date: 2000/10/22 Message-ID: <39f38e35$1_1@dnews> X-Deja-AN: 684625161 X-Trace: 22 Oct 2000 18:02:45 -0800, 209.245.131.252 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300