File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes javax.swing.text package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "javax.swing.text package" Watch "javax.swing.text package" New topic
Author

javax.swing.text package

Shane Roylance
Ranch Hand

Joined: Aug 29, 2001
Posts: 72
Let's say I got over-ambitious and decided to rewrite the text package in swing. So I have my own javax.swing.text package (I know that is not koshur). Is there any way to ensure that when my application is run (executable jar file), it uses my text package instead of the regular text package in rt.jar? Will it use mine by default if it is in my jar file? If I change the class path to always include my jar file before the rt.jar file, will that work?

Thanks
Shane
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

So I have my own javax.swing.text package (I know that is not koshur).
You're right, it's not. Why on earth would you want to do that? It's one thing to rewrite an entire package, but why would you keep the same package name? If you use your own package name, then you can rest assure you are using your classes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.swing.text package