convex.gui.actor.ParamLabel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-gui Show documentation
Show all versions of convex-gui Show documentation
Convex desktop GUI and test applications
The newest version!
package convex.gui.actor;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import convex.gui.utils.Toolkit;
/**
* Generic label component for displaying code
*/
@SuppressWarnings("serial")
public class ParamLabel extends JLabel {
public ParamLabel(String text) {
super(" " + text + " ");
this.setHorizontalAlignment(SwingConstants.RIGHT);
this.setFont(Toolkit.MONO_FONT);
}
}