View Full Version : search tbar

30 Aug 2010, 9:45 PM
I placed one tbar in panel.now in that tbar i wnat to write A to Z letters as buttons through for loop.how can i place this..

any one knows solution help me

31 Aug 2010, 10:27 AM
If I understand your question correctly you want to add buttons A through Z to your existing toolbar object?

for(int i=65;i<=90;i++){
toolBar.add(new Button(String.valueOf(((char)i))));

To be clearer I am using the number representation of the characters (http://academic.evergreen.edu/projects/biophysics/technotes/program/ascii_std.htm).