I trying to figure out how to do a number keypad in java. I'm recently started using java, still have so much to learn. The following is what I came up with so far but it only returns one char at a time. Still researching this, but would really appreciate any assistance..thanks
currentButton = (JButton)event.getSource();
itemQuantity = currentButton.getText().charAt(0) - '0';