Hi,

i created a bundle which shows a Swing Gui.
And that's where my problem starts. I want to show the user a selection of
different look and feels, he can choose from.
In doing so, i need to import classes for the LAFs. For example:
<code>
import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel;
</code>

However, as soon as i use the code above, i get the following error:
"Access restriction: The type NimbusLookAndFeel is not accessible due to
restriction on required library
/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/rt.jar"

I could not solve this problem, even with trying to add the package to the
Import-Package property in the MANIFEST:MF file.

Is there another way to import these classes? Can i even import the LAF
classes in an OSGI bundle?

Regards,
Niko

-- 
View this message in context: 
http://www.nabble.com/Howto-can-i-work-with-Look-And-Feel-Classes--tp25898282p25898282.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to