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

GUI calculator  RSS feed

 
Charles Woods
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks in advance for any assistance. I am seeking help on finding which methods will be useful in returning results in the JTextArea of my calculator. I am not even sure if JTextArea is the best to use, so I am open to much input. Thanks again.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're trying to mimic a normal calculator, I think a JTextField would be more appropriate, since that has only a single line of text. Its setText method would be the one to alter its contents.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!