🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Aligning a icon and a text in a jButton

#1820
From: Gillmer J. Derge [TeamB]
Date: Sun, 03 Aug 2003 14:50
11 lines
1380 bytes
"Kostas" <karadamoglou_k@yahoo.gr> wrote in message
news:3f2c347b@newsgroups.borland.com...
> I want to put in a jButton text and  an icon. if i select an ImageIcon
from
> the icon property of the jButton in the designer tab i get this align
> [icon][button]. How can i align the ico right?

button.setHorizontalTextPosition(JButton.LEFT);

-- 
Gillmer J. Derge [TeamB]
Technical Details
Message-ID: <3f2d2149$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f2c347b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8ef4f77555db7467
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-08-03 08:09:41 PST
From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <3f2c347b@newsgroups.borland.com>
Subject: Re: Aligning a icon and a text in a jButton
Date: Sun, 3 Aug 2003 10:50:54 -0400
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.110.133.233
Message-ID: <3f2d2149$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059922249 65.110.133.233 (3 Aug 2003 07:50:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail