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

正文內(nèi)容

java2網(wǎng)絡(luò)編程基礎(chǔ)-預(yù)覽頁

2024-11-13 15:39 上一頁面

下一頁面
 

【正文】 。2020 18 JPanel和 JButton使用示例 import .*。 JPanel cpane = new JPanel()。 (cancel)。 (true)。align表示水平對齊方式,其值可以為: LEFT、 RIGHT、CENTER。2020 20 文本組件 JtextComponent 為所有 Swing 文本組件的根類 JTextField JTextComponent JEditorPane JTextArea JTextPane JPasswordField Designed by Chiyong,169。 (jl)。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ū) ” )。 … 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。 JCheckBox c2 = new JCheckBox(音樂 ,false)。 JRadioButton rad3 = new JRadioButton(碩士 )。 public Hobby( ) { setLayout(new GridLayout(9,1))。 add(c3)。 add(rad3)。 setSize(300,200)。2020 27 列表 ? 在可供選擇的選項很多時,可向用戶呈現(xiàn)一個列表來供他們選擇 ? JList 組件依次排列項目列表,這些項目可以單選或多選 ? JList 類既可顯示字符串,也可顯示圖標 ? JList 不支持雙擊 ? MouseListener 可用于解決雙擊問題 Designed by Chiyong,169。要啟用滾動,可使用下列代碼 : JScrollPane myScrollPane=new JScrollPane()。 … Designed by Chiyong,169。2020 30 ? 菜單顯示項目列表,指明各種任務(wù)。2020 31 JFC 菜單組件 JMenuBar JPopupMenu AbstractButton JSeperator JMenuItem JMenu JCheckBoxMenuItem JRadioButtonMenuItem JComponent Container Component Object Designed by Chiyong,169。2020 33 JMenu ? JMenu 在 JMenuBar 下以文本字符串形式顯示,而在用戶單擊它時,則以彈出式菜單顯示。2020 36 JCheckBoxMenuItem ? 將復(fù)選框作為其項目 ? 復(fù)選框是使用 JCheckBox 類創(chuàng)建的 ? 可有文本字符串和(或)圖標 ? 在單擊并釋放 JCheckBoxMenuItem 時,菜單項的狀態(tài)會變?yōu)檫x定或取消選定 Designed by Chiyong,169。 public class Menutest extends JApplet { public void init() { JMenuBar mb = new JMenuBar()。 ()。 (new JCheckBoxMenuItem(下午好! ))。 } } Designed by Chiyong,16
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1