spunog
asked on
Combo items
How do I read in strings from a text file, one digit on each line and use the digit to choose Choices in Combo options(drop down menus) I think that say theres 6 choices in each one so 0 would indicate choose the first and so on .Any ideas ?
Thanks in advance
Thanks in advance
can you be more specific, please explain in more words...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
File fin = new File("Filename");
BufferedInputStream bIn = new BufferedInputStream(fsIn);
BufferdReader brIn = new BufferedReader(new InputStreamReader(bIn));
String str = new String();
str = brIn.readln();
int s = dd.intValue(str);
combo1.getItemAt(s.intValu e);
This is just a rough example, if you need more detail let me know
BufferedInputStream bIn = new BufferedInputStream(fsIn);
BufferdReader brIn = new BufferedReader(new InputStreamReader(bIn));
String str = new String();
str = brIn.readln();
int s = dd.intValue(str);
combo1.getItemAt(s.intValu
This is just a rough example, if you need more detail let me know
opps, supposed to look like this:
String str = new String();
str = brIn.readln();
Long dd = new Long(str);
int s = dd.intValue();
combo1.getItemAt(s.intValu e);
String str = new String();
str = brIn.readln();
Long dd = new Long(str);
int s = dd.intValue();
combo1.getItemAt(s.intValu