Re: 3D text in JButton
From: Thomas Weidenfeller (nobody_at_eed.ericsson.invalid)
Date: 11/04/03
- Next message: Stephan Friedrichs: "Re: GridBagLayout weightx question (not a FAQ)"
- Previous message: Thomas Weidenfeller: "Re: not modal File Choosers ?"
- In reply to: Igor Buzatovic: "Re: 3D text in JButton"
- Next in thread: Roald Ribe: "Re: 3D text in JButton"
- Reply: Roald Ribe: "Re: 3D text in JButton"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 4 Nov 2003 14:53:58 +0000 (UTC)
"Igor Buzatovic" <igor.buzatovic@willevolve.com> writes:
> ....or to override JButton's paintComponent method. Thiss assumes writing
> your own class which extends jbutton.
I thought about suggesting this, and also suggesting to use an icon.
But I couldn't think of a good method to extrude a 2D font on the fly
to a 3D object, and then rendering it on a 2D surface in Java:
You don't get the font vector data from the Java font system, so you
would have to extrude from rendered text. This would require some
processing and won't give you great results. Or you would have to write
a parser for the font data so you get the vector data. Or you would
have to embedd some font data into the Java program directly. And/or
you embedd a 3D font renderer into the application, which uses some 3D
font data. Non of this sounds too great to me.
IMHO the simplest is to use an existing TT font with a 3D look.
/Thomas
- Next message: Stephan Friedrichs: "Re: GridBagLayout weightx question (not a FAQ)"
- Previous message: Thomas Weidenfeller: "Re: not modal File Choosers ?"
- In reply to: Igor Buzatovic: "Re: 3D text in JButton"
- Next in thread: Roald Ribe: "Re: 3D text in JButton"
- Reply: Roald Ribe: "Re: 3D text in JButton"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]