Java Utililty Methods JLabel

List of utility methods to do JLabel

Description

The list of methods to do JLabel are organized into topic(s).

Method

voidsetResultRecordCountColour(JLabel label, boolean limitSet, Integer limitRecords, Integer ActualRecords)
set Result Record Count Colour
String warning = "";
if (ActualRecords > 0) {
    if (limitSet) {
        if (ActualRecords >= limitRecords) {
            label.setForeground(Color.RED);
            warning = " Number of records returned constrained by user defined limit.";
        } else {
            label.setForeground(Color.BLACK);
...
voidsetStatusLabel(JLabel label)
set Status Label
statusLabel = label;
intwidth(JLabel c)
Gets the width of a given label.
FontMetrics fm = c.getFontMetrics(c.getFont());
return fm.stringWidth(c.getText()) + 3;