Hello,
Please help me!
I have stored values ( many types of variables) in an arraylist.
They are values of linguistic pattern, trigger word, relevant count, irrelevant count and total count , relevant rate, rank.
Their length is different from one to another. For example, linguistic pattern may be such as <sub> active-verb
or
passive-verb prep <np>
or
gerund < obj >
I would like to show that values in the list box.
Here is my program.
public frmlist(ArrayList p,int mn) { enableEvents(AWTEvent.WINDOW_EVENT_MASK); ArrayList pp=new ArrayList(); String x1=new String("Linguistic Trigger Relevant Irrelevant Total Relevant "); pp.add(x1); String x3=new String("Pattern Verb Conunt Count Count Rate Rank"); pp.add(x3); String x2=new String(" ");for( int f = 0; f < p.size(); f++){String xx=new String(); x1=lptn[((Crules)p.get(f)).lp-1];xx=x1+x2.substring(0,35-x1.length());x1=""+((Crules)p.get(f)).tri;xx=xx+x1+x2.substring(0,15-x1.length());x1=""+((Crules)p.get(f)).count;xx=xx+x1+x2.substring(0,16-x1.length());x1=""+((Crules)p.get(f)).count1;xx=xx+x1+x2.substring(0,17-x1.length());x1=""+((Crules)p.get(f)).totalcount;xx=xx+x1+x2.substring(0,12-x1.length());x1=""+((Crules)p.get(f)).relrate;xx=xx+x1+x2.substring(0,14);x1=""+((Crules)p.get(f)).rank;xx=xx+x1;//+x2.substring(0,12-x1.length())pp.add(xx);}jList1 = new JList(pp.toArray());
jList1.setVisible(true)
But it looks very untidy like that.
How can I do?
linguistic trigger relevant irrelevant total relevant rank
pattern verb count count count
<sub> active-verb hit 1.0 0.0 1.0 1.0 0.0
active-verb prep <dobj> 0.0 1.0 1.0 0.0 0.0
gerund <dobj> 2.0 1.0 3.0 2.0 1.0
noun prep <np> 1.0 0.0 1.0 1.0 0.0
How can i show them in systematically?
Please help me.
I am sorry if you don't understand and feel upset because you don't understand what I am trying to say. I am weak in English.
Thank you very much!
Hello! Although I use code tag, my program appear like that. I am sorry. I use
and
.