*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* @return color associated with name, e.g. bold yellow on blue
*/
public CellAttributes getColor(final String name) {
* @return color associated with name, e.g. bold yellow on blue
*/
public CellAttributes getColor(final String name) {
try {
foreColorRGB = Integer.parseInt(tokenizer.nextToken(), 16);
} catch (NumberFormatException e) {
try {
foreColorRGB = Integer.parseInt(tokenizer.nextToken(), 16);
} catch (NumberFormatException e) {
try {
backColorRGB = Integer.parseInt(tokenizer.nextToken(), 16);
} catch (NumberFormatException e) {
try {
backColorRGB = Integer.parseInt(tokenizer.nextToken(), 16);
} catch (NumberFormatException e) {
color.setBold(false);
colors.put("tfield.inactive", color);
color = new CellAttributes();
color.setBold(false);
colors.put("tfield.inactive", color);
color = new CellAttributes();