All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mdlaf.components.editorpane.MaterialEditorPaneUI Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package mdlaf.components.editorpane;

import mdlaf.utils.MaterialDrawingUtils;

import javax.swing.JComponent;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicEditorPaneUI;
import java.awt.*;

/**
 * @author https://github.com/vincenzopalazzo
 */
public class MaterialEditorPaneUI extends BasicEditorPaneUI {

	public static ComponentUI createUI (JComponent c) {
		return new MaterialEditorPaneUI ();
	}

	@Override
	protected void paintBackground(Graphics g) {
		super.paintBackground(MaterialDrawingUtils.getAliasedGraphics(g));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy