Java Swing Border removePopupBorder(final Container c)

Here you can find the source of removePopupBorder(final Container c)

Description

remove Popup Border

License

Apache License

Declaration

public static void removePopupBorder(final Container c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.awt.Container;

import java.awt.EventQueue;

import javax.swing.JComponent;

public class Main {
    public static void removePopupBorder(final Container c) {
        EventQueue.invokeLater(() -> {
            Container p = c;//from   w w w. j a va  2s. com
            while (p != null) {
                if (p instanceof JComponent) {
                    ((JComponent) p).setBorder(null);
                }
                p = p.getParent();
            }
        });
    }
}

Related

  1. initLineBorderPanel(Color color, Color lineColor)
  2. installBorder(JComponent c, Border defaultBorder)
  3. isStandardBorder(Border b)
  4. makeTitledBorder(JComponent panel, String title, Color color)
  5. paintBorderDebugInfo(final Graphics g, final JComponent c)
  6. repaintBorder(JComponent component)
  7. repaintBorder(JComponent component)
  8. setBorder(Border b, JComponent... components)
  9. setBorder(JComponent comp, boolean setBorder, Color col)