• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.swing.text package

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 529
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic