2010年6月29日 星期二

Java筆記

What does it mean that a vector is synchronized in Java?

Ans:
It means that multiple threads can safely read/modify data from a vector at the same time. Attempting to do that with an unsynchronized data type - an ArrayList, for instance - could result in an exception being thrown, or incorrect data being stored.
---------------------------------------------------

MenuItem用Set Action來執行另一個java檔的JDialog

1.寫好的程式碼



2.在MenuItem按右鍵選Set Action



3.選擇要執行的function

沒有留言:

張貼留言