Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.swing.text package

 
Shane Roylance
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic