aspose 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

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?

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:
subject: javax.swing.text package
Similar Threads
TextPane Problem....
Where are the *.java & *.class ,when jvm try to find??
Can jsdk.jar and rt.jar be merged together?
How to access a text file inside a JAR org.apache.xml.serializer.ToXMLSAXHandler when deploying into Glassfish 2.1