Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accepting more than 1 letter from buttons

 
Mahesh K
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all Java Programmers.
I'm trying to create a calculator using JFC & swing. I have prepared buttons but unable to send more than 1 letter to text box from buttons at a time. Also I want to put a scroll bar to an applet. Can anybody help me? Either send email directly to me or send me reply through this forum.
Regards,
Mahesh.
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mahesh,
I'm not sure I understand your question. In particular, what do you mean by
I have prepared buttons but unable to send more than 1 letter to textbox from buttons at a time.

Is this like on a regular calculator you press the "5" button and a 5 appears in the display? If so, why are you trying to get more than one letter at a time? Please forgive my misunderstanding. I would like to help you. Could you please explain your question a different way or maybe post your code so we can see what the difficulty is?
Also, just to let you know, it is required on JavaRanch to use a first name, space, last name format when registering. "K" will not be considered a last name. See here for more info:
http://www.javaranch.com/name.html
Please make this change when you can, because I would hate to see your account be locked.
Thanks.
Stephanie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic