Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic