Re: increment letters
- From: Twisted <twisted0n3@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 20:16:37 -0000
On Jul 31, 4:03 pm, glennsno...@xxxxxxxxxxx wrote:
this.add(new JButton("A"));
Try
add(new JButton(""+'A'+i));
This works in C; less sure about Java. There's also:
add(new JButton(LETTERS[i]));
with elsewhere in the class the field
private static final String[] LETTERS = {"A","B","C",...,"Z"};
with the ... filled in in the obvious manner.
The array method is more amenable to any subsequent i18n conversions.
.
- Follow-Ups:
- Re: increment letters
- From: Joshua Cranmer
- Re: increment letters
- From: Roedy Green
- Re: increment letters
- References:
- increment letters
- From: glennsnoise
- increment letters
- Prev by Date: Facade Stateless session ejb Transaction attribute
- Next by Date: Re: increment letters
- Previous by thread: increment letters
- Next by thread: Re: increment letters
- Index(es):