Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextArea  RSS feed

 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is my class


Instead of extending JWindow if I extend JFrame I can type on the text area but now the textarea is not editable

What is the problem?

Thanks You
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for the reasons see the 2nd last reply in this recent thread
http://www.coderanch.com/t/341643/GUI/java/lack-focus

change your code to this - it looks exactly like a JWindow

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!