private void baudTextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_baudTextActionPerformed
try {
int rate;
port.setSerialPortParams(
rate = Integer.parseInt(baudText.getText()),
port.getDataBits(),
port.getStopBits(),
port.getParity());
textPane.append("\nset baud rate to " + baudText.getText() + "\n\n");
baudRate = rate;
prefs.putInt("baudRate", baudRate);
} catch (UnsupportedCommOperationException ex) {
log.warning(ex.toString());
textPane.append("\n*** could not set baud rate : " + ex + "\n\n");
}
}
HyperTerminal.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:jaer
作者:
评论列表
文章目录