/** * Set Status Line * * @param text text * @param error error */ public void setStatusLine(String text, boolean error) { mt_error = error; mt_text = text; if (mt_error) statusLine.setForeground(AdempierePLAF.getTextColor_Issue()); else statusLine.setForeground(AdempierePLAF.getTextColor_OK()); statusLine.setText(" " + mt_text); // Thread.yield(); } // setStatusLine
/** Update Display with Connection info */ public void setDisplay() { m_text.setText(getDisplay()); if (m_value == null) return; // Text if (m_value.isAppsServerOK(false) || m_value.isDatabaseOK()) { m_text.setForeground(AdempierePLAF.getTextColor_OK()); setBackground(false); if (!m_value.isAppsServerOK(false)) m_server.setBackground(AdempierePLAF.getFieldBackground_Error()); if (!m_value.isDatabaseOK()) m_db.setBackground(AdempierePLAF.getFieldBackground_Error()); } else { m_text.setForeground(AdempierePLAF.getTextColor_Issue()); setBackground(true); } } // setDisplay