slanted textfield

Hi,

I'd like to develop a JComponent that would display slanted (i.e. diagonally).

Displaying the text within that comp is not the hard part - Java 2D supports that fairly well.

The issue is slanting the component itself - e.g. a JTextField that can display diagonally and still respond to user clicks (within its diagonally bounded area). This is where the Java-Swing API is lacking in my opinion...

Any recommendations as to the best way to go about this?

thanks.

[506 byte] By [lionelboydjohnsona] at [2007-11-27 5:09:59]
# 1
Check out the [url http://java.sun.com/developer/TechTips/txtarchive/]Creating Round Buttons[/url] article. I would guess you need to override the contains(...) method for your hit detection.
camickra at 2007-7-12 10:29:56 > top of Java-index,Desktop,Core GUI APIs...
# 2
thanks.
lionelboydjohnsona at 2007-7-12 10:29:56 > top of Java-index,Desktop,Core GUI APIs...
# 3
You may also want to take a look at the [url http://weblogs.java.net/blog/alexfromsun/archive/2006/12/advanced_painti_3.html]JXLayer shaping capabilities[/url].There's a webstart example you can run.
JayDSa at 2007-7-12 10:29:56 > top of Java-index,Desktop,Core GUI APIs...
# 4
that looks good, but I'm restricted to use only sun's jdk... any articles on that would be helpful.thanks again.
lionelboydjohnsona at 2007-7-12 10:29:56 > top of Java-index,Desktop,Core GUI APIs...
# 5
> but I'm restricted to use only sun's jdk... any articles on that would be helpful.See reply 1.
camickra at 2007-7-12 10:29:56 > top of Java-index,Desktop,Core GUI APIs...