freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java2網(wǎng)絡(luò)編程基礎(chǔ)(編輯修改稿)

2024-11-17 15:39 本頁面
 

【文章內(nèi)容簡介】 構(gòu)造函數(shù)如下: ? JLabel(Icon icon): icon表示使用的圖標(biāo) ? JLabel(String text,Icon icon,int align): text表示使用的字符串 。 icon表示使用的圖標(biāo) 。align表示水平對齊方式,其值可以為: LEFT、 RIGHT、CENTER。 … ImageIcon icon = new ImageIcon()。 JLabel calv_label = new JLabel( 這是 Calvin, icon, )。 … Designed by Chiyong,169。2020 20 文本組件 JtextComponent 為所有 Swing 文本組件的根類 JTextField JTextComponent JEditorPane JTextArea JTextPane JPasswordField Designed by Chiyong,169。2020 21 JTextField ? JTextField 組件允許輸入或編輯單行文本 ? 此類的構(gòu)造函數(shù)包括: ? JTextField() ? JTextField(Document doc, String text, int columns) ? JTextField(int columns) ? JTextField(String text) ? JTextField(String text, int columns) … Container con = getContentPane()。 (new FlowLayout())。 JLabel jl = new JLabel(“文本域 ” )。 (jl)。 JTextField tf = new JTextField(20)。 (tf)。 … Designed by Chiyong,169。2020 22 JTextArea ? JTextArea 組件用于接受來自用戶的多行文本 ? 它可實現(xiàn)可滾動界面 ? JTextArea 組件可使用下列構(gòu)造函數(shù)創(chuàng)建: ? JTextArea() ? JTextArea(int rows, int cols) ? JTextArea(String text) ? JTextArea(String text, int rows, int cols) ? JTextArea(Document doc) ? JTextArea(Document doc, String text, int rows, int cols) … JLabel jl = new JLabel(“文本區(qū) ” )。 (jl)。 JTextArea ta = new JTextArea(5,10)。 (ta)。 … Designed by Chiyong,169。2020 23 選擇性輸入 ? 為了簡化表單填寫過程,通常為用戶提供多種可供選擇的選項,而無需用戶寫出他們的響應(yīng)。常用于選擇性輸入的組件有: ? 復(fù)選框 ? 單選按鈕 ? 列表框 ? 組合框 Designed by Chiyong,169。2020 24 復(fù)選框 ? 復(fù)選框用于為用戶提供一組選項 ? JCheckBox 類具有下列構(gòu)造函數(shù): ? JCheckBox() ? JCheckBox(Icon icon) ? JCheckBox(Icon icon, boolean selected) ? JCheckBox(String text) ? JCheckBox(String text, boolean selected) ? JCheckBox(String text, Icon icon) ? JCheckBox(String text, Icon icon, boolean selected) Designed by Chiyong,169。2020 25 單選按鈕 ? 單選按鈕允許用戶從多個選項中選擇其中一個 ? ButtonGroup 用于在 Swing 中創(chuàng)建組 ? JRadioButton 對象可使用下列構(gòu)造函數(shù)創(chuàng)建: JRadioButton() JRadioButton(Icon icon) JRadioButton(Icon, boolean selected) JRadioButton(String text) JRadioButton(String text, boolean selected) JRadioButton(String text, Icon icon) JRadioButton(String text, Icon icon, boolean selected) Designed by Chiyong,169。2020 2
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1