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

正文內(nèi)容

java語言程序設(shè)計_第九章課后習(xí)題答案_鄭莉(參考版)

2025-01-17 21:38本頁面
  

【正文】 該繪制區(qū)域設(shè)置為300400.,包含F(xiàn)ile和Type兩個菜單,F(xiàn)ile菜單中包括“打開”和“退出”兩個選項,打開菜單會彈出一個JFileChooser對話框,Type菜單包含一系列復(fù)選框,可用于確定文件選擇對話框的選擇類型。用含有三個JTextField、一個JButton、三個JTextField分別用于輸入兩個數(shù)字和運算符號,結(jié)果用JLable顯示出來。用這三個值作為Color類構(gòu)造方法的參數(shù)創(chuàng)建一個新的Color對象,用來填充一個矩形。,包括三個JSlider對象和三個JTexField對象。 }}運行結(jié)果:(下面的題目有空再做)、JFileChooser、JColorChooser。 (s)。 (true)。 (jLabel)。 (jButton1)。 jLabel = new JLabel()。 jButton2 = new JButton(按鈕2)。 jButton1 = new JButton(按鈕1)。 Container pane = ()。 JLabel jLabel。 JButton jButton1。import 。import 。import 。import 。//test9_11import 。 }}運行結(jié)果:。 } catch (NumberFormatException r) { (this, 請輸入整數(shù))。 (new Font(, 0, intFontSize))。// 顯示 } public void itemStateChanged(ItemEvent e) { //使用這個判斷的目的的是為了避免觸發(fā)事件總是執(zhí)行兩次的問題 if (() == ) { try { String s = ().toString()。 ()。// 添加ItemListener監(jiān)聽 // 添加兩個組件 (jLabel)。 (true)。 (new Font(, 0, 10))。 ()。 Container container = ()。 private String[] fontSize = { 8, 14, 20, 28, 32, 40 }。 private JLabel jLabel。import 。import 。import 。import 。//test9_9import 。 }}運行結(jié)果:。 (o)。 } if(()==jList2){ int index = (())。 Object o = ().getElementAt(index)。 (true)。 (jList2)。 (this)。 jList2=new JList(listModel2)。 (three)。 (one)。 (Third)。 (First)。 ()。 Container pane = ()。 public DefaultListModel listModel2。 public JList jList2。public class test9_8 extends JFrame implements MouseListener { public JFrame jFrame。import 。import 。import 。建立兩個JList,雙擊其中任何一個中的某一項,此項就會跑到另外一個JList中。 } } public static void main(String[] args) { new test9_7().init()。 } } if (() == 試試) { (this, oh,Fuck your teacher? yeal……good!)。//垂直顯示 ()。//水平不顯示 whetherCroll = false。 } Override public void actionPerformed(ActionEvent e) { // TODO Autogenerated method stub if (() == 滾動) { if (whetherCroll) { ()。 //排版顯示 ()。 // 將左右兩邊的中間容器放棄JFrame中 (jPanel, )。 // 將圖標(biāo)賦給標(biāo)簽label label = new JLabel(picture)。 (button3)。 (button1)。 button3 = new Button(退出)。 button2 = new Button(試試)。 button1 = new Button(滾動)。 (())。//用于切換滾動條的顯示 public void init() { JFrame jFrame = new JFrame(練習(xí)使用JscrollPane)。//滾動框中的標(biāo)簽 public ImageIcon picture = null。 private JScrollPane jscrollPane。 private Button button2。public class test9_7 extends JFrame implements ActionListener { private
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1