![JAR search and dependency download from the Maven repository](/logo.png)
freeseawind.lf.basic.popupmenu.LuckPopupMenuUI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of littleluck Show documentation
Show all versions of littleluck Show documentation
Java Swing cross platform LookAndFeel
package freeseawind.lf.basic.popupmenu;
import javax.swing.JComponent;
import javax.swing.LookAndFeel;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicPopupMenuUI;
/**
* PopupMenuUI,设置组件为不完全透明。
*
* 另请参见 {@link LuckPopupMenuSeparatorUI}, {@link LuckPopupMenuUIBundle}
*
*
* @author freeseawind@github
* @version 1.0
*
*/
public class LuckPopupMenuUI extends BasicPopupMenuUI
{
public static ComponentUI createUI(JComponent c)
{
return new LuckPopupMenuUI();
}
public LuckPopupMenuUI()
{
super();
}
public void installUI(JComponent c)
{
super.installUI(c);
}
@Override
protected void uninstallDefaults()
{
super.uninstallDefaults();
popupMenu.setBorder(null);
}
public void installDefaults()
{
super.installDefaults();
LookAndFeel.installProperty(popupMenu, "opaque", Boolean.FALSE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy