当前位置: 技术问答>java相关
关于对象生命期的问题
来源: 互联网 发布时间:2015-10-21
本文导语: 程序大致如下: ...... PartsListModel pcm = (PartsListModel)jListBox.getModel(); //sItems format ::= text1,value1|text2,value2|... StringTokenizer st = new StringTokenizer(sItems,"|"); int count = 0; while (st.hasMoreTokens()) { String stemp = st.ne...
程序大致如下:
......
PartsListModel pcm = (PartsListModel)jListBox.getModel();
//sItems format ::= text1,value1|text2,value2|...
StringTokenizer st = new StringTokenizer(sItems,"|");
int count = 0;
while (st.hasMoreTokens()) {
String stemp = st.nextToken();
StringTokenizer st1 = new StringTokenizer(stemp,",");
String[] atemp = {"",""};
for (int i=0; i
......
PartsListModel pcm = (PartsListModel)jListBox.getModel();
//sItems format ::= text1,value1|text2,value2|...
StringTokenizer st = new StringTokenizer(sItems,"|");
int count = 0;
while (st.hasMoreTokens()) {
String stemp = st.nextToken();
StringTokenizer st1 = new StringTokenizer(stemp,",");
String[] atemp = {"",""};
for (int i=0; i