private void setColorParameters() { String s; Color c; s = getParameter("physicalColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setPhysicalColor(c); } catch (NumberFormatException e) { } s = getParameter("sensitivityColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setSensitivityColor(c); } catch (NumberFormatException e) { } s = getParameter("intellectualColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setIntellectualColor(c); } catch (NumberFormatException e) { } s = getParameter("borderLineColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setBorderLineColor(c); } catch (NumberFormatException e) { } s = getParameter("biorhythmGraphColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setBiorhythmGraphColor(c); } catch (NumberFormatException e) { } s = getParameter("backgroundColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setBackgroundColor(c); } catch (NumberFormatException e) { } s = getParameter("ControlPanelColor"); try { c = new Color(Integer.parseInt(s, 16)); controlPanel.setBackgroundColor(c); } catch (NumberFormatException e) { } s = getParameter("stringColor"); try { c = new Color(Integer.parseInt(s, 16)); biorhythmCanvas.setStringColor(c); } catch (NumberFormatException e) { } }