Can you show us the manifest of your bundle please? regards,
Karl On Fri, May 29, 2009 at 12:04 PM, Andreas Mucha <sing...@gmx.net> wrote: > hello all, > > i have a little bundle which displays some swing gui. > at first i figured out, that the only suitable way > to install an own look and feel is UIManager.setLookAndFeel("classname"). > UIManager.setLookAndFeel(new LF()) will not work due to osgi class > loading mechanism. > > so i installed a little look and feel : > UIManager.setLookAndFeel("com.lipstikLF.LipstikLookAndFeel"); > after this i tryed to set a theme to this lf. > the lipstick lf provides a static method to do this : > LipstikLookAndFeel.setMyCurrentTheme(...) . > but this has no effect. (i guess it has also something to do with > correct/incorrect class loading) > > so i tryed to access the lf : > ((LipstikLookAndFeel)UIManager.getLookAndFeel()).callSomeMethod > > now i get this strange exception : > > java.lang.ClassCastException: com.lipstikLF.LipstikLookAndFeel cannot be cast > to com.lipstikLF.LipstikLookAndFeel > at ... > > any ideas about that strange behaviour ?? > > thanks in advance > andreas . > > my setup : winxp, eclipse 3.4.2 jdk1.6.13, felix 1.8.0. > to create bundles from jars i used : bnd wrap <jarfile> (no other options) > -- > Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und > Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > -- Karl Pauls karlpa...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org