Browse Source

Pull request #2213: KERNEL-4069 jdk11 macos的jdk里面移除了windows相关的LAF

Merge in DESIGN/design from ~HADES/design:feature/10.0 to feature/10.0

* commit 'd1de8589f137e22143f5509b860089317aef4ac4':
  KERNEL-4069 jdk11 macos的jdk里面移除了windows相关的LAF
research/11.0
Hades 4 years ago
parent
commit
7f9a55ef26
  1. 4
      designer-base/src/main/java/com/fr/design/gui/icombobox/LazyComboBoxTest.java

4
designer-base/src/main/java/com/fr/design/gui/icombobox/LazyComboBoxTest.java

@ -3,10 +3,10 @@
*/ */
package com.fr.design.gui.icombobox; package com.fr.design.gui.icombobox;
import com.fr.design.gui.UILookAndFeel;
import com.fr.design.gui.itextfield.UITextField; import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
@ -23,7 +23,7 @@ import java.awt.event.ItemListener;
public class LazyComboBoxTest { public class LazyComboBoxTest {
public static void main(String[] args) { public static void main(String[] args) {
try { try {
UIManager.setLookAndFeel(new WindowsLookAndFeel()); UIManager.setLookAndFeel(new UILookAndFeel());
} catch (UnsupportedLookAndFeelException e1) { } catch (UnsupportedLookAndFeelException e1) {
FineLoggerFactory.getLogger().error(e1.getMessage(), e1); FineLoggerFactory.getLogger().error(e1.getMessage(), e1);
} }

Loading…
Cancel
Save