8189201: [macosx] NotSerializableException during JFrame with MenuBar serialization

Reviewed-by: serb, prr
This commit is contained in:
Semyon Sadetsky 2018-01-26 10:49:37 -08:00
parent 8275c3907b
commit 01a0105416
4 changed files with 81 additions and 4 deletions

View file

@ -31,13 +31,14 @@ import java.awt.Graphics;
import java.awt.Insets;
import javax.swing.border.Border;
import javax.swing.plaf.UIResource;
import sun.swing.SwingUtilities2;
/**
* The class represents the border of a {@code JMenuBar}.
*/
public class AquaMenuBarBorder implements Border {
public class AquaMenuBarBorder implements Border, UIResource {
@Override
public void paintBorder(final Component c, final Graphics g, final int x,