Example usage for javax.swing BorderFactory createLineBorder

List of usage examples for javax.swing BorderFactory createLineBorder

Introduction

In this page you can find the example usage for javax.swing BorderFactory createLineBorder.

Prototype

public static Border createLineBorder(Color color) 

Source Link

Document

Creates a line border with the specified color.

Usage

From source file:com.monead.semantic.workbench.SemanticWorkbench.java

/**
 * Setup the status panel/*from w w  w . jav  a2  s . c om*/
 * 
 * @return The status JPanel
 */
private JPanel setupStatusPanel() {
    JPanel statusPanel;

    statusPanel = new JPanel();
    statusPanel.setLayout(new GridLayout(1, 1));
    statusPanel
            .setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), "Status"));
    statusPanel.add(makeFlowPanel(status, FlowLayout.LEFT));

    return statusPanel;
}

From source file:edu.ku.brc.af.ui.forms.ViewFactory.java

/**
 * Sets a border on the component as defined in the properties.
 * @param comp the component//from   w w w  . jav a 2  s .com
 * @param props the list of properties
 */
protected void setBorder(final JComponent comp, final Properties props) {
    if (props != null) {
        String borderType = props.getProperty("border");
        if (StringUtils.isNotEmpty(borderType)) {
            if (borderType.equals("etched")) {
                comp.setBorder(BorderFactory.createEtchedBorder());

            } else if (borderType.equals("lowered")) {
                comp.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));

            } else if (borderType.equals("raised")) {
                comp.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));

            } else if (borderType.equals("empty")) {
                comp.setBorder(BorderFactory.createEmptyBorder());

            } else if (borderType.equals("line")) {
                Color color = Color.LIGHT_GRAY;
                String borderColor = props.getProperty("bordercolor");
                if (StringUtils.isNotEmpty(borderColor)) {
                    try {
                        color = UIHelper.parseRGB(borderColor);

                    } catch (ConfigurationException ex) {
                        log.error(ex);
                    }
                }
                comp.setBorder(BorderFactory.createLineBorder(color));
            }
        }
    }
}

From source file:com.monead.semantic.workbench.SemanticWorkbench.java

/**
 * Startup the SPARQL server/*from ww w. jav  a 2 s.c  o m*/
 */
private void startSparqlServer() {
    if (!SparqlServer.getInstance().isActive()) {
        if (ontModel != null) {
            publishModelToTheSparqlServer();
            SparqlServer.getInstance().addObserver(this);

            try {
                SparqlServer.getInstance().start();
            } catch (Throwable throwable) {
                LOGGER.error("Unable to start the SPARQL server", throwable);
                SparqlServer.getInstance().deleteObserver(this);
                JOptionPane.showMessageDialog(this,
                        "Unable to start the SPARQL server\n" + throwable.getMessage(),
                        "Cannot Start the SPARQL Server", JOptionPane.ERROR_MESSAGE);
            }

            if (SparqlServer.getInstance().isActive()) {
                if (SparqlServer.getInstance().areRemoteUpdatesPermitted()) {
                    sparqlServerInfo.setBorder(
                            BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.red.darker()),
                                    "SPARQL Server Status (Updates Allowed)",
                                    TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION,
                                    BorderFactory.createTitledBorder("").getTitleFont(), Color.red.darker()));

                }
                sparqlServerInfo.setForeground(Color.blue.darker());
                updateSparqlServerInfo();
                setStatus("SPARQL server started on port " + SparqlServer.getInstance().getListenerPort()
                        + (SparqlServer.getInstance().areRemoteUpdatesPermitted() ? " (Remote Updates Enabled)"
                                : ""));
            }
        } else {
            JOptionPane.showMessageDialog(this, "You must create a model before starting the SPARQL server",
                    "Cannot Start SPARQL Server", JOptionPane.WARNING_MESSAGE);
        }
    } else {
        setStatus("SPARQL server is already running");
    }

    enableControls(true);
}

From source file:org.forester.archaeopteryx.TreePanel.java

final private void showNodeDataPopup(final MouseEvent e, final PhylogenyNode node) {
    try {//  w  w  w  .j  a va  2s .com
        if ((node.getNodeName().length() > 0)
                || (node.getNodeData().isHasTaxonomy() && !isTaxonomyEmpty(node.getNodeData().getTaxonomy()))
                || (node.getNodeData().isHasSequence() && !isSequenceEmpty(node.getNodeData().getSequence()))
                || (node.getNodeData().isHasDate()) || (node.getNodeData().isHasDistribution())
                || node.getBranchData().isHasConfidences()) {
            _popup_buffer.setLength(0);
            short lines = 0;
            if (node.getNodeName().length() > 0) {
                lines++;
                _popup_buffer.append(node.getNodeName());
            }
            if (node.getNodeData().isHasTaxonomy() && !isTaxonomyEmpty(node.getNodeData().getTaxonomy())) {
                lines++;
                boolean enc_data = false;
                final Taxonomy tax = node.getNodeData().getTaxonomy();
                if (_popup_buffer.length() > 0) {
                    _popup_buffer.append("\n");
                }
                if (!ForesterUtil.isEmpty(tax.getTaxonomyCode())) {
                    _popup_buffer.append("[");
                    _popup_buffer.append(tax.getTaxonomyCode());
                    _popup_buffer.append("]");
                    enc_data = true;
                }
                if (!ForesterUtil.isEmpty(tax.getScientificName())) {
                    if (enc_data) {
                        _popup_buffer.append(" ");
                    }
                    _popup_buffer.append(tax.getScientificName());
                    enc_data = true;
                }
                if (!ForesterUtil.isEmpty(tax.getCommonName())) {
                    if (enc_data) {
                        _popup_buffer.append(" (");
                    } else {
                        _popup_buffer.append("(");
                    }
                    _popup_buffer.append(tax.getCommonName());
                    _popup_buffer.append(")");
                    enc_data = true;
                }
                if (!ForesterUtil.isEmpty(tax.getAuthority())) {
                    if (enc_data) {
                        _popup_buffer.append(" (");
                    } else {
                        _popup_buffer.append("(");
                    }
                    _popup_buffer.append(tax.getAuthority());
                    _popup_buffer.append(")");
                    enc_data = true;
                }
                if (!ForesterUtil.isEmpty(tax.getRank())) {
                    if (enc_data) {
                        _popup_buffer.append(" [");
                    } else {
                        _popup_buffer.append("[");
                    }
                    _popup_buffer.append(tax.getRank());
                    _popup_buffer.append("]");
                    enc_data = true;
                }
                if (tax.getSynonyms().size() > 0) {
                    if (enc_data) {
                        _popup_buffer.append(" ");
                    }
                    _popup_buffer.append("[");
                    int counter = 1;
                    for (final String syn : tax.getSynonyms()) {
                        if (!ForesterUtil.isEmpty(syn)) {
                            _popup_buffer.append(syn);
                            if (counter < tax.getSynonyms().size()) {
                                _popup_buffer.append(", ");
                            }
                        }
                        counter++;
                    }
                    _popup_buffer.append("]");
                }
            }
            if (node.getNodeData().isHasSequence() && !isSequenceEmpty(node.getNodeData().getSequence())) {
                lines++;
                boolean enc_data = false;
                if (_popup_buffer.length() > 0) {
                    _popup_buffer.append("\n");
                }
                final Sequence seq = node.getNodeData().getSequence();
                if (seq.getAccession() != null) {
                    _popup_buffer.append("[");
                    if (!ForesterUtil.isEmpty(seq.getAccession().getSource())) {
                        _popup_buffer.append(seq.getAccession().getSource());
                        _popup_buffer.append("=");
                    }
                    _popup_buffer.append(seq.getAccession().getValue());
                    _popup_buffer.append("]");
                    enc_data = true;
                }
                if (!ForesterUtil.isEmpty(seq.getSymbol())) {
                    if (enc_data) {
                        _popup_buffer.append(" [");
                    } else {
                        _popup_buffer.append("[");
                    }
                    _popup_buffer.append(seq.getSymbol());
                    _popup_buffer.append("]");
                    enc_data = true;
                }
                if (!ForesterUtil.isEmpty(seq.getName())) {
                    if (enc_data) {
                        _popup_buffer.append(" ");
                    }
                    _popup_buffer.append(seq.getName());
                }
            }
            if (node.getNodeData().isHasDate()) {
                lines++;
                if (_popup_buffer.length() > 0) {
                    _popup_buffer.append("\n");
                }
                _popup_buffer.append(node.getNodeData().getDate().asSimpleText());
            }
            if (node.getNodeData().isHasDistribution()) {
                lines++;
                if (_popup_buffer.length() > 0) {
                    _popup_buffer.append("\n");
                }
                _popup_buffer.append(node.getNodeData().getDistribution().asSimpleText());
            }
            if (node.getBranchData().isHasConfidences()) {
                final List<Confidence> confs = node.getBranchData().getConfidences();
                for (final Confidence confidence : confs) {
                    lines++;
                    if (_popup_buffer.length() > 0) {
                        _popup_buffer.append("\n");
                    }
                    if (!ForesterUtil.isEmpty(confidence.getType())) {
                        _popup_buffer.append("[");
                        _popup_buffer.append(confidence.getType());
                        _popup_buffer.append("] ");
                    } else {
                        _popup_buffer.append("[?] ");
                    }
                    _popup_buffer.append(FORMATTER_CONFIDENCE.format(ForesterUtil.round(confidence.getValue(),
                            getOptions().getNumberOfDigitsAfterCommaForConfidenceValues())));
                }
            }
            if (_popup_buffer.length() > 0) {
                if (!getConfiguration().isUseNativeUI()) {
                    _rollover_popup
                            .setBorder(BorderFactory.createLineBorder(getTreeColorSet().getBranchColor()));
                    _rollover_popup.setBackground(getTreeColorSet().getBackgroundColor());
                    if (isInFoundNodes(node)) {
                        _rollover_popup.setForeground(getTreeColorSet().getFoundColor());
                    } else if (getControlPanel().isColorAccordingToTaxonomy()) {
                        _rollover_popup.setForeground(getTaxonomyBasedColor(node));
                    } else {
                        _rollover_popup.setForeground(getTreeColorSet().getSequenceColor());
                    }
                } else {
                    _rollover_popup.setBorder(BorderFactory.createLineBorder(Color.BLACK));
                }
                _rollover_popup.setText(_popup_buffer.toString());
                //_rollover_popup.setText("Hallo");
                _node_desc_popup = PopupFactory.getSharedInstance().getPopup(null, _rollover_popup,
                        e.getLocationOnScreen().x + 10, e.getLocationOnScreen().y - (lines * 20));
                _node_desc_popup.show();
            }
        }
    } catch (final Exception ex) {
        // Do nothing.
    }
}

From source file:org.forester.archaeopteryx.TreePanel.java

final private void showBranchDataPopup(final MouseEvent e, final PhylogenyNode node) {
    try {//  ww  w .  jav a  2  s  .com
        String[] histdata = null;
        short lines = 10;
        // show inserted species on branch
        if (!(((Annotation) node.getNodeData().getSequences().get(0).getAnnotation(0)).getDesc()
                .length() < 10)) { // as long as there are no branch names longer than 9 characters, this is going to work
            lines++;
            _popup_buffer.delete(0, _popup_buffer.length());
            histdata = ((Annotation) node.getNodeData().getSequences().get(0).getAnnotation(0)).getDesc()
                    .split(",");
            _popup_buffer
                    .append("RAxml Weights Histogram " + node.getNodeData().getSequence(0).getName() + "\n");

            String branch_data = "";
            // parse the histogram
            Pattern p = Pattern.compile("\\s*\\d\\.\\d\\s-\\s\\d\\.\\d:\\s[\\|\\.]*\\s*\\d+");
            for (int i = 0; i < histdata.length; i++) {

                //##################################
                // Parse Node Description a[i] here!

                Matcher m = p.matcher(histdata[i]);
                if (m.matches()) {
                    branch_data = branch_data + histdata[i] + "\n";

                    //   System.out.println(a[i]);
                }

            }
            _popup_buffer.append(branch_data);

            //_popup_buffer.append(((Annotation)node.getNodeData().getSequence().getAnnotation(0)).getDesc());     
        } else if (node.getNodeData().isHasSequence()) {
            _popup_buffer.delete(0, _popup_buffer.length());
            _popup_buffer.append(node.getNodeData().getSequence(0).getName());
        }

        if (_popup_buffer.length() > 0) {
            if (!getConfiguration().isUseNativeUI()) {
                _rollover_popup.setBorder(BorderFactory.createLineBorder(getTreeColorSet().getBranchColor()));
                _rollover_popup.setBackground(getTreeColorSet().getBackgroundColor());
                if (isInFoundNodes(node)) {
                    _rollover_popup.setForeground(getTreeColorSet().getFoundColor());
                } else if (getControlPanel().isColorAccordingToTaxonomy()) {
                    _rollover_popup.setForeground(getTaxonomyBasedColor(node));
                } else {
                    _rollover_popup.setForeground(getTreeColorSet().getSequenceColor());
                }
            } else {
                _rollover_popup.setBorder(BorderFactory.createLineBorder(Color.BLACK));
            }

            CategoryDataset data = createDataset(histdata);
            JFreeChart histogram = createChart(data, node.getNodeData().getSequence(0).getName());
            _chart_panel = new ChartPanel(histogram, 300, 200, ChartPanel.DEFAULT_MINIMUM_DRAW_WIDTH,
                    ChartPanel.DEFAULT_MINIMUM_DRAW_HEIGHT, ChartPanel.DEFAULT_MAXIMUM_DRAW_WIDTH,
                    ChartPanel.DEFAULT_MAXIMUM_DRAW_HEIGHT, ChartPanel.DEFAULT_BUFFER_USED, false, false, false,
                    false, true);
            _rollover_popup.setText(_popup_buffer.toString());//_popup_buffer.toString() );
            _node_desc_popup = PopupFactory.getSharedInstance().getPopup(null, _chart_panel,
                    e.getLocationOnScreen().x + 10, e.getLocationOnScreen().y - (10));
            _node_desc_popup.show();
        }
    } catch (final Exception ex) {
        // Do nothing.
    }
}

From source file:app.RunApp.java

/**
 * Fill the table with coefficient values
 * // ww  w  .j a va  2s.c o  m
 * @param dataset
 * @param pairs
 * @param type 
 */
private void fillTableCoefficients(MultiLabelInstances dataset, String type) {
    double[][] pairLabelValues;

    //coocurrence values table
    if (type.equals("coocurrence")) {
        pairLabelValues = ChartUtils.getCoocurrences(dataset);
        coocurrenceCoefficients = pairLabelValues;
    }
    //heatmap values table
    else {
        pairLabelValues = getHeatMapCoefficients();
        heatmapCoefficients = pairLabelValues.clone();
    }

    /**     **/

    data = new Object[pairLabelValues.length][pairLabelValues.length + 1];
    column = new Object[data.length + 1];

    if (type.equals("coocurrence")) {
        for (int i = 0; i < pairLabelValues.length; i++) {
            for (int j = 0; j < pairLabelValues.length; j++) {

                if (j == 0) {
                    data[i][j] = dataset.getLabelNames()[i];
                } else if (i == (j - 1)) {
                    data[i][j] = "";
                } else if (j > i) {
                    data[i][j] = "";
                } else {
                    if (pairLabelValues[j - 1][i] <= 0.0) {
                        data[i][j] = "";
                    } else {
                        data[i][j] = (int) pairLabelValues[j - 1][i];
                    }
                }
            }
        }
    } else {
        for (int i = 0; i < pairLabelValues.length; i++) {
            for (int j = 0; j < pairLabelValues.length + 1; j++) {

                if (j == 0) {
                    data[i][j] = dataset.getLabelNames()[i];
                } else {
                    if (pairLabelValues[j - 1][i] <= 0.0) {
                        data[i][j] = "";
                    } else {
                        NumberFormat formatter = new DecimalFormat("#0.000");
                        data[i][j] = formatter.format(pairLabelValues[j - 1][i]).replace(",", ".");
                    }
                }
            }
        }
    }

    for (int i = 0; i < column.length; i++) {
        if (i == 0) {
            column[i] = "Labels";
        } else {
            column[i] = (dataset.getLabelNames()[i - 1]);
        }
    }

    AbstractTableModel1 fixedModel = new AbstractTableModel1(data, column);
    AbstractTableModel2 model = new AbstractTableModel2(data, column);

    JTable temp, fixedTable_temp;
    JPanel jpanel_temp;

    if (type.equals("coocurrence")) {
        temp = jTableCoocurrences;
        jpanel_temp = panelCoOcurrenceValues;
        fixedTable_temp = fixedTableCoocurrences;
    } else {
        temp = jTableHeatmap;
        jpanel_temp = panelHeatmapValues;
        fixedTable_temp = fixedTableHeatmap;
    }

    fixedTable_temp.setModel(fixedModel);
    temp.setModel(model);

    JScrollPane scroll = new JScrollPane(temp);
    JViewport viewport = new JViewport();
    viewport.setView(fixedTable_temp);
    viewport.setPreferredSize(fixedTable_temp.getPreferredSize());
    scroll.setRowHeaderView(viewport);

    scroll.setBounds(20, 20, 780, 390);

    scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, fixedTable_temp.getTableHeader());

    temp.setBorder(BorderFactory.createLineBorder(Color.black));

    jpanel_temp.remove(0);
    jpanel_temp.add(scroll, BorderLayout.CENTER, 0);
}

From source file:app.RunApp.java

/**
 * Fill the table with Chi and Phi coefficients
 * //from w ww .ja v a 2s  .c o  m
 * @param dataset Multi-label dataset
 */
private void fillTableChiPhiCoefficients(MultiLabelInstances dataset) {
    chiPhiCoefficients = ChartUtils.getChiPhiCoefficients(dataset);
    data = new Object[chiPhiCoefficients.length][chiPhiCoefficients.length + 1];
    column = new Object[data.length + 1];

    for (int i = 0; i < chiPhiCoefficients.length; i++) {
        data[i] = Utils.getValuesByRow(i, chiPhiCoefficients, dataset.getLabelNames()[i]);
    }

    for (int i = 0; i < column.length; i++) {
        if (i == 0) {
            column[i] = "Labels";
        } else {
            column[i] = (dataset.getLabelNames()[i - 1]);
        }
    }

    AbstractTableModel1 fixedModel = new AbstractTableModel1(data, column);
    AbstractTableModel2 model = new AbstractTableModel2(data, column);

    fixedTableChiPhi.setModel(fixedModel);
    jTableChiPhi.setModel(model);

    JScrollPane scroll = new JScrollPane(jTableChiPhi);
    JViewport viewport = new JViewport();
    viewport.setView(fixedTableChiPhi);
    viewport.setPreferredSize(fixedTableChiPhi.getPreferredSize());
    scroll.setRowHeaderView(viewport);

    scroll.setBounds(20, 20, 780, 390);

    scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, fixedTableChiPhi.getTableHeader());

    jTableChiPhi.setBorder(BorderFactory.createLineBorder(Color.black));

    if (firstTimeChi) {
        panelChiPhi.add(scroll, BorderLayout.CENTER, 0);
        firstTimeChi = false;
        return;
    }

    panelChiPhi.remove(0);
    panelChiPhi.add(scroll, BorderLayout.CENTER, 0);
}

From source file:app.RunApp.java

/**
 * Create table of metrics for principal tab
 * /*w w w.  ja v a2s.c  om*/
 * @param table Table of metrics
 * @param jpanel Panel
 * @param rowData Cell values
 * @param posx Pos X
 * @param posy Pos Y
 * @param width Width
 * @param height Height
 */
public void createJTableMetricsPrincipal(JTable table, JPanel jpanel, Object rowData[][], int posx, int posy,
        int width, int height) {
    TableModel model = new MetricsTableModel(rowData);

    table.setModel(model);

    TableColumnModel tcm = table.getColumnModel();

    tcm.getColumn(0).setPreferredWidth(420);
    tcm.getColumn(1).setPreferredWidth(70);

    DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();
    rightRenderer.setHorizontalAlignment(JLabel.RIGHT);
    tcm.getColumn(1).setCellRenderer(rightRenderer);

    tcm.getColumn(2).setPreferredWidth(50);
    tcm.getColumn(2).setMaxWidth(50);
    tcm.getColumn(2).setMinWidth(50);

    JScrollPane scrollPane = new JScrollPane(table);

    scrollPane.setBounds(posx, posy, width, height);

    table.setBorder(BorderFactory.createLineBorder(Color.black));

    jpanel.add(scrollPane, BorderLayout.CENTER);
    jpanel.repaint();
    jpanel.validate();
}

From source file:app.RunApp.java

/**
 * Create metrics table for multiple datasets tab
 * /*from  ww  w  . j a v a  2s.  c  o  m*/
 * @param table Table of metrics
 * @param jpanel Panel
 * @param rowData Cell values
 * @param posx Position X
 * @param posy Position Y
 * @param width Width
 * @param height Height
 */
public void createJTableMetricsMultipleDatasets(JTable table, JPanel jpanel, Object rowData[][], int posx,
        int posy, int width, int height) {
    TableModel model = new MetricsTableModel(rowData, "multi");

    table.setModel(model);

    TableColumnModel tcm = table.getColumnModel();

    tcm.getColumn(0).setPreferredWidth(320);

    tcm.getColumn(1).setPreferredWidth(40);
    tcm.getColumn(1).setMaxWidth(40);
    tcm.getColumn(1).setMinWidth(40);

    JScrollPane scrollPane = new JScrollPane(table);

    scrollPane.setBounds(posx, posy, width, height);

    table.setBorder(BorderFactory.createLineBorder(Color.black));

    jpanel.add(scrollPane, BorderLayout.CENTER);
    jpanel.repaint();
    jpanel.validate();
}

From source file:ECallCenter21.java

/**
 *
 * @param remoteDisplayData//from ww w  .ja v  a  2 s .  com
 */
@Override
synchronized public void phoneDisplay(final DisplayData remoteDisplayData) {
    if (enableDisplayCheckBox.isSelected()) {
        Thread displayThread14 = new Thread(allThreadsGroup, new Runnable() {
            @Override
            @SuppressWarnings({ "static-access" })
            public void run() {
                if (!localDisplayData.getSoftphoneInfoCell().equals(remoteDisplayData.getSoftphoneInfoCell())) {
                    localDisplayData.setSoftphoneInfoCell(remoteDisplayData.getSoftphoneInfoCell());
                    softphoneInfoLabel.setText(localDisplayData.getSoftphoneInfoCell());
                }
                if (!localDisplayData.getProxyInfoCell().equals(remoteDisplayData.getProxyInfoCell())) {
                    localDisplayData.setProxyInfoCell(remoteDisplayData.getProxyInfoCell());
                    proxyInfoLabel.setText(localDisplayData.getProxyInfoCell());
                }
                if (!localDisplayData.getPrimaryStatusCell().equals(remoteDisplayData.getPrimaryStatusCell())) {
                    localDisplayData.setPrimaryStatusCell(remoteDisplayData.getPrimaryStatusCell());
                    primaryStatusLabel.setText(localDisplayData.getPrimaryStatusCell());
                }
                if (!localDisplayData.getPrimaryStatusDetailsCell()
                        .equals(remoteDisplayData.getPrimaryStatusDetailsCell())) {
                    localDisplayData
                            .setPrimaryStatusDetailsCell(remoteDisplayData.getPrimaryStatusDetailsCell());
                    primaryStatusDetailsLabel.setText(localDisplayData.getPrimaryStatusDetailsCell());
                }
                if (!localDisplayData.getSecondaryStatusCell()
                        .equals(remoteDisplayData.getSecondaryStatusCell())) {
                    localDisplayData.setSecondaryStatusCell(remoteDisplayData.getSecondaryStatusCell());
                    secondaryStatusLabel.setText(localDisplayData.getSecondaryStatusCell());
                }
                if (!localDisplayData.getSecondaryStatusDetailsCell()
                        .equals(remoteDisplayData.getSecondaryStatusDetailsCell())) {
                    localDisplayData
                            .setSecondaryStatusDetailsCell(remoteDisplayData.getSecondaryStatusDetailsCell());
                    secondaryStatusDetailsLabel.setText(localDisplayData.getSecondaryStatusDetailsCell());
                }

                if (localDisplayData.getOnFlag() != remoteDisplayData.getOnFlag()) {
                    localDisplayData.setOnFlag(remoteDisplayData.getOnFlag());
                    if (localDisplayData.getOnFlag()) {
                        onPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.ONCOLOR));
                        onLabel.setForeground(localDisplayData.ONCOLOR);
                    } else {
                        onPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        onLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getIdleFlag() != remoteDisplayData.getIdleFlag()) {
                    localDisplayData.setIdleFlag(remoteDisplayData.getIdleFlag());
                    if (localDisplayData.getIdleFlag()) {
                        idlePanel.setBorder(BorderFactory.createLineBorder(localDisplayData.IDLECOLOR));
                        idleLabel.setForeground(localDisplayData.IDLECOLOR);
                    } else {
                        idlePanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        idleLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getConnectFlag() != remoteDisplayData.getConnectFlag()) {
                    localDisplayData.setConnectFlag(remoteDisplayData.getConnectFlag());
                    if (localDisplayData.getConnectFlag()) {
                        connectingPanel
                                .setBorder(BorderFactory.createLineBorder(localDisplayData.CALLINGCOLOR));
                        connectingLabel.setForeground(localDisplayData.CONNECTCOLOR);
                    } else {
                        connectingPanel
                                .setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        connectingLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getCallingFlag() != remoteDisplayData.getCallingFlag()) {
                    localDisplayData.setCallingFlag(remoteDisplayData.getCallingFlag());
                    if (localDisplayData.getCallingFlag()) {
                        callingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.CALLINGCOLOR));
                        callingLabel.setForeground(localDisplayData.CALLINGCOLOR);
                    } else {
                        callingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        callingLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getRingingFlag() != remoteDisplayData.getRingingFlag()) {
                    localDisplayData.setRingingFlag(remoteDisplayData.getRingingFlag());
                    if (localDisplayData.getRingingFlag()) {
                        ringingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.RINGINGCOLOR));
                        ringingLabel.setForeground(localDisplayData.RINGINGCOLOR);
                    } else {
                        ringingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        ringingLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getAcceptFlag() != remoteDisplayData.getAcceptFlag()) {
                    localDisplayData.setAcceptFlag(remoteDisplayData.getAcceptFlag());
                    if (localDisplayData.getAcceptFlag()) {
                        acceptingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.ACCEPTCOLOR));
                        acceptingLabel.setForeground(localDisplayData.ACCEPTCOLOR);
                    } else {
                        acceptingPanel
                                .setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        acceptingLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getTalkingFlag() != remoteDisplayData.getTalkingFlag()) {
                    localDisplayData.setTalkingFlag(remoteDisplayData.getTalkingFlag());
                    if (localDisplayData.getTalkingFlag()) {
                        talkingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.TALKINGCOLOR));
                        talkingLabel.setForeground(localDisplayData.TALKINGCOLOR);
                    } else {
                        talkingPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        talkingLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getRegisteredFlag() != remoteDisplayData.getRegisteredFlag()) {
                    localDisplayData.setRegisteredFlag(remoteDisplayData.getRegisteredFlag());
                    if (localDisplayData.getRegisteredFlag()) {
                        registeredPanel
                                .setBorder(BorderFactory.createLineBorder(localDisplayData.REGISTEREDCOLOR));
                        registeredLabel.setForeground(localDisplayData.REGISTEREDCOLOR);
                        registerToggleButton.setSelected(true);
                        registerToggleButton.setForeground(Color.BLUE);
                    } else {
                        registeredPanel
                                .setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        registeredLabel.setForeground(localDisplayData.INACTIVECOLOR);
                        registerToggleButton.setSelected(false);
                        registerToggleButton.setForeground(Color.BLACK);
                    }
                }
                if (localDisplayData.getAnswerFlag() != remoteDisplayData.getAnswerFlag()) {
                    localDisplayData.setAnswerFlag(remoteDisplayData.getAnswerFlag());
                    if (localDisplayData.getAnswerFlag()) {
                        answerPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.ANSWERCOLOR));
                        answerLabel.setForeground(localDisplayData.ANSWERCOLOR);
                        cancelPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        cancelLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    } else {
                        answerPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        answerLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getCancelFlag() != remoteDisplayData.getCancelFlag()) {
                    localDisplayData.setCancelFlag(remoteDisplayData.getCancelFlag());
                    if (localDisplayData.getCancelFlag()) {
                        cancelPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.CANCELCOLOR));
                        cancelLabel.setForeground(localDisplayData.CANCELCOLOR);
                        answerPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        answerLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    } else {
                        cancelPanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        cancelLabel.setForeground(localDisplayData.INACTIVECOLOR);
                    }
                }
                if (localDisplayData.getMuteFlag() != remoteDisplayData.getMuteFlag()) {
                    localDisplayData.setMuteFlag(remoteDisplayData.getMuteFlag());
                    if (localDisplayData.getMuteFlag()) {
                        mutePanel.setBorder(BorderFactory.createLineBorder(localDisplayData.MUTECOLOR));
                        muteLabel.setForeground(localDisplayData.MUTECOLOR);
                        muteAudioToggleButton.setSelected(true);
                        muteAudioToggleButton.setForeground(Color.BLUE);
                    } else {
                        mutePanel.setBorder(BorderFactory.createLineBorder(localDisplayData.INACTIVECOLOR));
                        muteLabel.setForeground(localDisplayData.INACTIVECOLOR);
                        muteAudioToggleButton.setSelected(false);
                        muteAudioToggleButton.setForeground(Color.BLACK);
                    }
                }
            }
        });
        displayThread14.setName("displayThread14");
        displayThread14.setDaemon(runThreadsAsDaemons);
        displayThread14.start();

    }
    return;
}