Article View: borland.public.jbuilder.java.language
Article #14917Wrapping Text in a JButton
From: New Horizons Software
Date: Sat, 17 Jul 1999 00:00
Date: Sat, 17 Jul 1999 00:00
12 lines
1036 bytes
1036 bytes
Does anyone know how to force line wrapping in a JButton? I've put an Icon inside so I can force the button to be square. And I'd like to put the text inside the icon, not on the button's label. And I'd like for it to wrap. Also a 2nd question. I can get the button to turn yellow when clicked. And I can get the icon to turn yellow when pressing the mouse button. But I can't get it to stay yellow. Is there a background method with the icon I'm missing? Thanks
Technical Details
Message-ID:
<3790a2fe.221400608@news.iu.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5e745ec7e3367baf,start X-Google-Attributes: gidf74b3,public From: cstrick@iu.net.cut_this (New Horizons Software) Subject: Wrapping Text in a JButton Date: 1999/07/17 Message-ID: <3790a2fe.221400608@news.iu.net> X-Deja-AN: 502116518 X-Complaints-To: newsabuse@remarQ.com X-Trace: 932225747.135.42 .X8MLPGJIB84BCC75C qube-01.us-ca.remarq.com Organization: New Horizons Software NNTP-Posting-Date: Sat, 17 Jul 1999 15:35:47 GMT Newsgroups: borland.public.jbuilder.java.language