d*r 发帖数: 238 | 1 I found that maybe I can use EventQueue to solve this. I will try that today.
Another question: How to import classes dynamically.
That is:
If I have a class implemented a certain interface but I can only know the
exact class name at run time. How to do it?
始 |
st 发帖数: 1685 | 2 http://www.google.
com/search?q=java+classfactory&num=30&hl=zh-CN&ie=UTF-8&oe=UTF-8
dont remember detail, something called classfactory as I remember...
【在 d*r 的大作中提到】 : I found that maybe I can use EventQueue to solve this. I will try that today. : Another question: How to import classes dynamically. : That is: : If I have a class implemented a certain interface but I can only know the : exact class name at run time. How to do it? : : 始
|
g*****g 发帖数: 34805 | 3 reflection.
【在 d*r 的大作中提到】 : I found that maybe I can use EventQueue to solve this. I will try that today. : Another question: How to import classes dynamically. : That is: : If I have a class implemented a certain interface but I can only know the : exact class name at run time. How to do it? : : 始
|