wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Custom LookAndFeel and JTextArea (functional keys doesn't work) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Custom LookAndFeel and JTextArea (functional keys doesn Watch "Custom LookAndFeel and JTextArea (functional keys doesn New topic
Author

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

Bartek Myszkowski
Ranch Hand

Joined: Feb 03, 2009
Posts: 44
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

Joined: Feb 03, 2009
Posts: 44
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);
 
Don't get me started about those stupid light bulbs.
 
subject: Custom LookAndFeel and JTextArea (functional keys doesn't work)
 
Similar Threads
FocusListener problem
Problem with custom look and feel implementation
How to load custom UI using L&F?
Custom LookAndFeel and JTable problem
JMenuBar and LookAndFeel problem