Author Topic: Layout for keypad  (Read 14651 times)

Major_Small

  • Jackass IV
  • Posts: 317
  • Karma: +10/-0
    • http://www.johnshaoonline.com
Layout for keypad
« on: July 28, 2005, 06:54:08 AM »
what kind of layout(s) would you use for a keypad?

by keypad, I mean:
Code: [Select]
+---+---+---+---+
|   | / | * | - |
+---+---+---+---+
| 7 | 8 | 9 | + |
+---+---+---+   |
| 4 | 5 | 6 |   |
+---+---+---+---+
| 1 | 2 | 3 | = |
+---+---+---|   |
| 0     | . |   |
+-------+---+---+
of course, all buttons (even the blank one normally used for numlock)
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
51 Members so far, are YOU a member?
Current team score: 827850 (ranked 357 of 41389)

The CBoard team is doing better than [COLOR='#0000FF']99.13%[/COLOR] of the other teams
Top 5 Members: Xterria(331048), Bennet(64957), pianorain(56621), Codeplug(35842), JaWiB(34917)

Last Updated on: Mon, 28 Nov, 2005 @ 3:21 PM EST

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Layout for keypad
« Reply #1 on: July 28, 2005, 08:01:40 AM »
I'm not quite sure what you're asking?  Why would I use a different layout than that one?

Major_Small

  • Jackass IV
  • Posts: 317
  • Karma: +10/-0
    • http://www.johnshaoonline.com
Layout for keypad
« Reply #2 on: July 28, 2005, 08:14:54 AM »
as in I want to throw that into a JPanel... what layouts meaning like a GridLayout, BorderLayout, FlowLayout, etc. to put the buttons in those positions...

for example, this is what I have so far:



but that's just using the GridLayout... and I'm having trouble figuring out how to get the +, =, and 0 keys right...
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
51 Members so far, are YOU a member?
Current team score: 827850 (ranked 357 of 41389)

The CBoard team is doing better than [COLOR='#0000FF']99.13%[/COLOR] of the other teams
Top 5 Members: Xterria(331048), Bennet(64957), pianorain(56621), Codeplug(35842), JaWiB(34917)

Last Updated on: Mon, 28 Nov, 2005 @ 3:21 PM EST

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
Layout for keypad
« Reply #3 on: July 28, 2005, 10:20:20 AM »
Try the GridBagLayout.
This signature intentionally left blank.