I’ve encountered something weird when using TextEditor. For instance, the caret is not actually visible, though isCaretVisible returns true. And for second, I am not able to write anything in the editor.
Yes, the textEditor is visible. The cursor for typing appears and I’ve tried typing, but to no effect. Should I add a Listener or something like that? I’ve got the ideea from a tutorial that it isn’t necesarry, maybe I’m wrong.
No listeners required or anything like that. I have just tested this to check I’m not going mad and have no problem writing into a text editor created like you describe. Can’t think what you’re doing that is strange.
TIP: Setting the component’s size before adding it is a little wierd. Put the text1 setBounds() code in the parent component’s resized() method so it can respond to changes in the parent size.
Ok, thanks for your input. I think there’s an issue with the caret, meaning I just set it to visible (though it’s visible by default) and it doesn’t appear. You were able to see it, I presume? Either way, thank you for your patience once again.
Yes, it worked! Thank you so much! Apparently [quote]some hosts can be a bit funny about keyboard focus[/quote] Awesome and thank you all for your answers and patience!