mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +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.*;
|
||||||
import javax.swing.plaf.ComponentUI;
|
import javax.swing.plaf.ComponentUI;
|
||||||
import com.formdev.flatlaf.ui.FlatPopupMenuUI;
|
import com.formdev.flatlaf.ui.FlatPopupMenuUI;
|
||||||
|
import com.jidesoft.plaf.LookAndFeelFactory;
|
||||||
import com.jidesoft.plaf.basic.BasicJidePopupMenuUI;
|
import com.jidesoft.plaf.basic.BasicJidePopupMenuUI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -28,6 +29,10 @@ public class FlatJidePopupMenuUI
|
|||||||
extends FlatPopupMenuUI
|
extends FlatPopupMenuUI
|
||||||
{
|
{
|
||||||
public static ComponentUI createUI( JComponent c ) {
|
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();
|
return new FlatJidePopupMenuUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,10 @@ public class FlatJideTabbedPaneUI
|
|||||||
private Object[] oldRenderingHints;
|
private Object[] oldRenderingHints;
|
||||||
|
|
||||||
public static ComponentUI createUI( JComponent c ) {
|
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();
|
LookAndFeelFactory.installJideExtension();
|
||||||
|
|
||||||
return new FlatJideTabbedPaneUI();
|
return new FlatJideTabbedPaneUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,10 @@ public class FlatRangeSliderUI
|
|||||||
private Object[] oldRenderingHints;
|
private Object[] oldRenderingHints;
|
||||||
|
|
||||||
public static ComponentUI createUI( JComponent c ) {
|
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();
|
LookAndFeelFactory.installJideExtension();
|
||||||
|
|
||||||
return new FlatRangeSliderUI();
|
return new FlatRangeSliderUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user