查找功能应该使用String类的这两个函数做.
int indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring.
int indexOf(String str, int fromIndex)
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
int indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring.
int indexOf(String str, int fromIndex)
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
另外,我用jwindow做了一个欢迎界面如何在我记事本之前先出
--------------------------------------------------------
偶的苯方法:
jwindow为mainWindow,开一个线程,休眠一段时间,再启动记事本