Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Accepting more than 1 letter from buttons

 
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.
 
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
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic