Java Code Examples for com.l2fprod.common.util.ResourceManager#getString()
The following examples show how to use
com.l2fprod.common.util.ResourceManager#getString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ColorPropertyEditor.java From orbit-image-analysis with GNU General Public License v3.0 | 5 votes |
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); } }
Example 2
Source File: FontPropertyEditor.java From orbit-image-analysis with GNU General Public License v3.0 | 5 votes |
protected void selectFont() { ResourceManager rm = ResourceManager.all(FontPropertyEditor.class); String title = rm.getString("FontPropertyEditor.title"); Font selectedFont = JFontChooser.showDialog(editor, title, font); if (selectedFont != null) { Font oldFont = font; Font newFont = selectedFont; label.setValue(newFont); font = newFont; firePropertyChange(oldFont, newFont); } }
Example 3
Source File: ColorPropertyEditor.java From CodenameOne with GNU General Public License v2.0 | 5 votes |
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); } }
Example 4
Source File: ExtendedColorPropertyEditor.java From nextreports-designer with Apache License 2.0 | 5 votes |
protected void selectColor() { ResourceManager rm = ResourceManager.all(FilePropertyEditor.class); String title = rm.getString("ColorPropertyEditor.title"); Color selectedColor = ExtendedColorChooser.showDialog(editor, title, (Color)getValue()); if (selectedColor != null) { Color oldColor = (Color)getValue(); setValue(selectedColor); firePropertyChange(oldColor, selectedColor); } }