mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 14:37:13 -06:00
macOS: native rounded borders for popups (issue #715)
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package com.formdev.flatlaf.testing;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.Point;
|
||||
import javax.swing.*;
|
||||
import com.formdev.flatlaf.util.Animator;
|
||||
import net.miginfocom.swing.*;
|
||||
@@ -88,6 +87,17 @@ public class FlatPopupTest
|
||||
animator.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateUI() {
|
||||
super.updateUI();
|
||||
|
||||
if( popupMenu1 != null ) {
|
||||
SwingUtilities.updateComponentTreeUI( popupMenu1 );
|
||||
SwingUtilities.updateComponentTreeUI( popupMenu2 );
|
||||
SwingUtilities.updateComponentTreeUI( popupPanel );
|
||||
}
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
|
||||
label1 = new JLabel();
|
||||
|
||||
Reference in New Issue
Block a user