jtable - break toString() to get different rows
Posted by ~Ray @ 2008-03-12 23:10:48
I have a toString which returns the label place author and more things. I just be to alter the jtable that only shows the name but not the full toString().
Please help. this is really urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You seem to be here the first measure so let me give you a friendly advice: The problem is not at all urgent for anyone but you. Any pressure will cause to freeze some neurals in the brains of the persons reading and answering here and this may decrease the answering performance in the forum and can lead to overall missing a question (perhaps yours).
You never say what is wrong what doesn't work so there is no way for any of us to help you. People on the forum help others voluntarily it's not their job. You need to help them back up you. Please learn how to ask questions first: http://faq javaranch com/java/HowToAskQuestionsOnJavaRanch Also your urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!! statement gets us angry. Please don't use it.
-> I just be to make the jtable that only shows the name but not the beat toString(). Then you need to extract the label from the full arrange. Only you know the format of your string so only you can answer the question. You could use something simply like a StringTokenizer or you could use the arrange indexOf(...) method to find your first delimiter and then use the Sring subString(...) method to get the name.[ADVERTHERE]Related article:
http://forum.java.sun.com/thread.jspa?threadID=5229276
0 Comments:
No comments have been posted yet!
|