用哪个函数可以把TABLE里的项全清除?如何进行字符串比较?

解决方案 »

  1.   

    用setValueAt()方法  把所有的表格的值设置成空用removeRow()  删除行。或者在model里删除数据
      

  2.   

    字符串比较: 
    String的方法: 
    int compareTo(String anotherString) 
    Compares two strings lexicographically. boolean equals(Object anObject) 
    Compares this string to the specified object. boolean equalsIgnoreCase(String anotherString) 
    Compares this String to another String, ignoring case considerations. 
      

  3.   

    清除数据:在renderer里把value设置为空
    字符串比较:?什么意思?