亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

代碼沒問題,為什么運行不出來 ?

代碼沒問題,為什么運行不出來 ?

程Glory 2017-07-11 14:22:23
import?java.awt.Container; import?javax.swing.JFrame; import?javax.swing.JTextArea; import?javax.swing.WindowConstants; public?class?JTextAreaTest?extends?JFrame?{ public?JTextAreaTest()?{ Container?cp?=?getContentPane(); setTitle("定義自動換行的文本域"); setSize(200,?100); setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); JTextArea?jt?=?new?JTextArea("文本域",6,6); jt.setLineWrap(true); cp.add(jt); setVisible(true); } public?static?void?main(String[]?args)?{ new?JTextArea(); } }運行 ?什么也不顯示 ?怎么回事
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1518 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號