if (client != null) {
client.addDisconnectListener(this);
}
// microphone volume meter
micMeter = new VMeter("");
micMeter.setBackground(Color.WHITE);
micMeter.setForeground(Color.DARK_GRAY);
micMeter.setPreferredSize(micMeterPanel.getPreferredSize());
micMeter.setShowValue(false);
micMeter.setShowTicks(false);
micMeter.setMaxValue(1D);
micMeter.setWarningValue(micWarningLimit);
micMeter.setVisible(true);
micMeterPanel.add(micMeter);
// speaker volume meter
speakerMeter = new VMeter("");
speakerMeter.setBackground(Color.WHITE);
speakerMeter.setForeground(Color.DARK_GRAY);
speakerMeter.setPreferredSize(speakerMeterPanel.getPreferredSize());
speakerMeter.setShowValue(false);
speakerMeter.setShowTicks(false);