mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 05:50:53 +03:00
JIDE: invoke LookAndFeelFactory.installJideExtension() early in FlatJidePopupMenuUI to be sure that Jide extensions are installed
This commit is contained in:
@@ -19,6 +19,7 @@ package com.formdev.flatlaf.jideoss.ui;
|
||||
import javax.swing.*;
|
||||
import javax.swing.plaf.ComponentUI;
|
||||
import com.formdev.flatlaf.ui.FlatPopupMenuUI;
|
||||
import com.jidesoft.plaf.LookAndFeelFactory;
|
||||
import com.jidesoft.plaf.basic.BasicJidePopupMenuUI;
|
||||
|
||||
/**
|
||||
@@ -28,6 +29,10 @@ public class FlatJidePopupMenuUI
|
||||
extends FlatPopupMenuUI
|
||||
{
|
||||
public static ComponentUI createUI( JComponent c ) {
|
||||
// usually JIDE would invoke this in JidePopupMenu.updateUI(),
|
||||
// but it does not because FlatLaf already has added the UI class to the UI defaults
|
||||
LookAndFeelFactory.installJideExtension();
|
||||
|
||||
return new FlatJidePopupMenuUI();
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,10 @@ public class FlatJideTabbedPaneUI
|
||||
private Object[] oldRenderingHints;
|
||||
|
||||
public static ComponentUI createUI( JComponent c ) {
|
||||
// usually JIDE would invoke this in JideTabbedPane.updateUI(),
|
||||
// but it does not because FlatLaf already has added the UI class to the UI defaults
|
||||
LookAndFeelFactory.installJideExtension();
|
||||
|
||||
return new FlatJideTabbedPaneUI();
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,10 @@ public class FlatRangeSliderUI
|
||||
private Object[] oldRenderingHints;
|
||||
|
||||
public static ComponentUI createUI( JComponent c ) {
|
||||
// usually JIDE would invoke this in RangeSlider.updateUI(),
|
||||
// but it does not because FlatLaf already has added the UI class to the UI defaults
|
||||
LookAndFeelFactory.installJideExtension();
|
||||
|
||||
return new FlatRangeSliderUI();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user