How to get classes from a packege?
I must create a java application that simulates a class-tree (as the NetBeans navigator). I must use a JTextField and a JTree.
The textfield must be autocomplete-like: it must offer for the user the classes from the classpath and the system classes from the rt.jar library.
My only problem is, how to "extract" these classes... My autocomplete textfield uses a List (java.util.List), so I must put these classes in that.
Can you please help me, how can I access the classes from these packages?
If I use a Package object, it has only the getPackage(String) and getPackages() methods, so I can acces the sub-packages. But there is no method like getClasses()... :confused:
Thank you for help!