use of com.l2fprod.common.util.ResourceManager in project JWildfire by thargor6.
the class TinaController method backgroundColorBtn_clicked.
public void backgroundColorBtn_clicked() {
if (getCurrFlame() != null) {
undoManager.saveUndoPoint(getCurrFlame());
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
Color selectedColor = JColorChooser.showDialog(rootPanel, title, new Color(getCurrFlame().getBgColorULRed(), getCurrFlame().getBgColorULGreen(), getCurrFlame().getBgColorULBlue()));
if (selectedColor != null) {
getCurrFlame().setBgColorULRed(selectedColor.getRed());
getCurrFlame().setBgColorULGreen(selectedColor.getGreen());
getCurrFlame().setBgColorULBlue(selectedColor.getBlue());
refreshFlameImage(true, false, 1, true, true);
refreshBGColorULIndicator();
}
}
}
use of com.l2fprod.common.util.ResourceManager in project CodenameOne by codenameone.
the class ColorPropertyEditor method selectColor.
protected void selectColor() {
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
Color selectedColor = JColorChooser.showDialog(editor, title, color);
if (selectedColor != null) {
Color oldColor = color;
Color newColor = selectedColor;
label.setValue(newColor);
color = newColor;
firePropertyChange(oldColor, newColor);
}
}
Aggregations