我不知道是什麼; S布萊恩,請高手幫我字符串不能轉換成分
private void btn_sendActionPerformed(java.awt.event.ActionEvent evt) {
try {
server_writer.write(cmb_server.getSelectedItem() + ":" +txt_chat.getText());
server_writer.newLine();
server_writer.flush();
} catch (IOException ex){
System.out.println("Failed");
}
list_chat.add("Me : " + txt_chat.getText()); // ERROR
txt_chat.setText("");
}
*注:應用程序使用的jList聊天(客戶端 - 服務器)
這是什麼:** ** dsfhskdjl?你的問題是什麼? –
很難告訴你在此輸入。什麼是list_chat? – GhostCat
@YoungMillie這就是「哦,不,SO具有最小長度的問題,別急,我有一個想法......」 –