This is the forum for JIDE Common Layer which is open sourced at
https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.
Moderator: JIDE Support
Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.
by montechristos » Tue Aug 21, 2007 6:05 am
Hello,
We are haveing a NPE while trying to initialize a RangeSlider in Synthetica L&F:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicSliderUI.calculateContentRect(Unknown Source)
at javax.swing.plaf.basic.BasicSliderUI.calculateGeometry(Unknown Source)
at javax.swing.plaf.basic.BasicSliderUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at com.jidesoft.swing.RangeSlider.updateUI(Unknown Source)
at javax.swing.JSlider.<init>(Unknown Source)
at javax.swing.JSlider.<init>(Unknown Source)
at com.jidesoft.swing.RangeSlider.<init>(Unknown Source)
Thanks in advance
-
montechristos
-
- Posts: 1
- Joined: Mon Mar 19, 2007 3:01 am
by JIDE Support » Tue Aug 21, 2007 6:26 am
You can fix this by adding this before you call LookAndFeelFactory.installJideExtension().
- Code: Select all
LookAndFeelFactory.addUIDefaultsInitializer(new LookAndFeelFactory.UIDefaultsInitializer() {
public void initialize(UIDefaults defaults) {
defaults.put("Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0));
}
});
But ideally, there should be a customized UI for RangeSlider for Synthetica.
Thanks,
JIDE Software Technical Support Team
-
JIDE Support
- Site Admin
-
- Posts: 37219
- Joined: Sun Sep 14, 2003 10:49 am
-
Return to JIDE Common Layer Open Source Project Discussion (Community Driven)
Who is online
Users browsing this forum: No registered users and 8 guests