List of utility methods to do JLabel
void | setResultRecordCountColour(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); ... |
void | setStatusLabel(JLabel label) set Status Label statusLabel = label; |
int | width(JLabel c) Gets the width of a given label. FontMetrics fm = c.getFontMetrics(c.getFont());
return fm.stringWidth(c.getText()) + 3;
|