Article View: cn.bbs.comp.lang.java
Article #20536Re: ����Ƽ������������õĿ�
From: 99SE.Eric.Hsu.��̹ܿ�
Date: Wed, 17 Dec 2003 03:18
Date: Wed, 17 Dec 2003 03:18
22 lines
1666 bytes
1666 bytes
In a game project, I have implemented this:
. Add a normal Swing JButton
. Add a transparent gif picture to the button (whatever the
shape you want:)
. Set the JButton to be transparent
It's quite simple, but it's quite useful, though the "un-usual
shape" button is "pseudo" :)
�� �� bird.bbs@Freecity.dhs.org (��ˮ�У��������...) �Ĵ������ᵽ: ��
: ���������������״�Ŀؼ�����Բ�ǰ�ť�ȵ�
: �� �� halis.bbs@bbs.nankai.edu.cn (��������-98cs-McGill-Maste �Ĵ������ᵽ: ��
: : javax.swing
--
Nothing is easy in fact
Nothing is complicated indeed
- 03.10.05.19:21.Eric
[m[1;34m�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 202.113.30.24][m
Technical Details
Message-ID:
<49fjOk$9yR@bbs.nankai.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKaiShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f6cb0,e6b223a1b6c26087,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-16 19:20:52 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai From: OtherVoices.bbs@bbs.nankai.edu.cn (99SE.Eric.Hsu.��̹ܿ�) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ����Ƽ������������õĿ� Date: 17 Dec 2003 03:18:35 GMT Organization: �Ұ��Ͽ�վ Message-ID: <49fjOk$9yR@bbs.nankai.edu.cn> X-Filename: Java/M.1071630766.A Lines: 22