freeseawind.lf.basic.combobox.LuckComboBoxRenderer 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
The newest version!
package freeseawind.lf.basic.combobox;
import javax.swing.UIManager;
import javax.swing.plaf.basic.BasicComboBoxRenderer;
/**
*
* ComboBoxRenderer实现类, 使用自定义边框改变内容显示间距。
*
* The ComboBoxRenderer implementation class uses a custom border to change
* the content display spacing.
*
*
* @author freeseawind@github
* @version 1.0
*
*/
public class LuckComboBoxRenderer extends BasicComboBoxRenderer
{
private static final long serialVersionUID = 3856963267590149277L;
public LuckComboBoxRenderer()
{
super();
// 设置内边框, 用来控制内容之间的显示间距
// Set the inner border, used to control the display spacing
// between the content.
setBorder(UIManager.getBorder(LuckComboBoxUIBundle.RENDERERBORDER));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy