🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8088

Re: JButton sizing

#8088
From: John McGrath TeamB
Date: Mon, 23 Oct 2000 00:00
17 lines
885 bytes
On Sun, 22 Oct 2000 18:10:57 -0700, Steven Lazow wrote:

> 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.

Try:
    b.setMargin( new Insets(0,0,0,0) );

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.145d9421e515e4c7989c6c@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39f38e35$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f161651f53628338
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: JButton sizing
Date: 2000/10/23
Message-ID: <MPG.145d9421e515e4c7989c6c@forums.borland.com>
X-Deja-AN: 684683435
References: <39f38e35$1_1@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing