This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom LookAndFeel and JTextArea (functional keys doesn't work)

 
Bartek Myszkowski
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again,

I am learning how to create custom LAF and I have found problem with JTextArea. I have written a TextAreaUI that extends BasicTextAreaUI (but I have left it almost empty). When I use my LAF and create a JTextArea all is fine but functional keys like enter, delete, backspace and arrows just doesn't work for created JTextArea and I have no idea why...
(I have same problem with JTextField/TextFieldUI but I think the reason is the same)

Sourcecode with isolated problem:Is there any book/tutorial (that You can recommend) that describes creating custom LAF?
 
Bartek Myszkowski
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found solution on my own in Napkin LAF sourcecode.
Just if some had/will have same problem - check file NapkinLookAndFeel.java, method setupActions(table);
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic