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

正文內(nèi)容

j2ee開(kāi)發(fā)技術(shù)(二)(參考版)

2025-03-14 19:49本頁(yè)面
  

【正文】 } 1/31/2023 77 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 public void go() { while (true) { 。 (new OnOffL())。 (new StartL())。 (new FlowLayout())。 private boolean runFlag = true。 private JButton start = new JButton(Start), onOff = new JButton(Toggle)。 } public static void main(String[] args) { (new TrackEvent(), 700, 500)。 } (b1)。 (t)。 (false)。 i 。 (new GridLayout(+1,2))。 addMouseMotionListener(mml)。 addKeyListener(kl)。 setBackground(color)。 } }。 1/31/2023 66 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 MouseMotionListener mml = new MouseMotionListener() { public void mouseDragged(MouseEvent e) { report(mouseDragged, ())。 } public void mouseReleased(MouseEvent e) { report(mouseReleased, ())。 } public void mouseExited(MouseEvent e) { report(mouseExited, ())。 1/31/2023 65 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 MouseListener ml = new MouseListener() { public void mouseClicked(MouseEvent e) { report(mouseClicked, ())。 } public void keyTyped(KeyEvent e) { report(keyTyped, ())。 1/31/2023 64 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 KeyListener kl = new KeyListener() { public void keyPressed(KeyEvent e) { report(keyPressed, ())。 } public void focusLost(FocusEvent e) { report(focusLost, ())。 1/31/2023 63 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 class MyButton extends JButton { void report(String field, String msg) { ((JTextField)(field)).setText(msg)。 String[] event = { focusGained, focusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited,mousePressed, mouseReleased, mouseDragged, mouseMoved }。 import .*。 import .*。 ? Controlling layout ? Container – JApplet, JFrame JWindow, and JDialog can produce by getContentPane ? Jpanel – Contian and display ponents directly ? setLayout( ) – BorderLayout – (, new JButton(South)) – FlowLayout – (new JButton(Button + i)) 1/31/2023 57 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 Chapter13: Creating Windows and Applets ? setLayout( ) ? BorderLayout ? FlowLayout ? GridLayout – new GridLayout(7,3) ? Absolute positioning – setLayout(null) – setBounds( ) ? BoxLayout – BoxLayout allows you to control the placement of ponents either vertically or horizontally 1/31/2023 58 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 Chapter13: Creating Windows and Applets ? The Swing event model ? Event and listener types – ActionEvent – ActionListener – addActionListener( ) – removeActionListener( ) ? Listener interfaces and Method – ActionListener – actionPerformed(ActionEvent) ? Using listener adapters for simplicity – WindowAdapter ? Tracking multiple 1/31/2023 59 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 Listener interface/ adapter Methods in interface ActionListener actionPerformed(ActionEvent) AdjustmentListener adjustmentValueChanged( AdjustmentEvent) ComponentListener ComponentAdapter ponentHidden(ComponentEvent) ponentShown(ComponentEvent) ponentMoved(ComponentEvent) ponentResized(ComponentEvent) ContainerListener ContainerAdapter ponentAdded(ContainerEvent) ponentRemoved(ContainerEvent) 1/31/2023 60 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 FocusListener FocusAdapter focusGained(FocusEvent) focusLost(FocusEvent) KeyListener KeyAdapter keyPressed(KeyEvent) keyReleased(KeyEvent) keyTyped(KeyEvent) MouseListener MouseAdapter mouseClicked(MouseEvent) mouseEntered(MouseEvent) mouseExited(MouseEvent) mousePressed(MouseEvent) mouseReleased(MouseEvent) MouseMotionListener MouseMotionAdapter mouseDragged(MouseEvent) mouseMoved(MouseEvent) 1/31/2023 61 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 WindowListener WindowAdapter windowOpened(WindowEvent) windowClosing(WindowEvent) windowClosed(WindowEvent) windowActivated(WindowEvent) windowDeactivated(WindowEvent) windowIconified(WindowEvent) windowDeiconified(WindowEvent) ItemListener itemStateChanged(ItemEvent) 1/31/2023 62 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 //: c13: import .*。 } public static void main(String[] args) { (new Button2(), 200, 75)。 (b2)。 (new FlowLayout())。 (al)。 } } 1/31/2023 55 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 BL al = new BL()。 class BL implements ActionListener { public void actionPerformed(ActionEvent e){ String name = ((JButton)()).getText()。 public class Button2 extends JApplet { JButton b1 = new JButton(Button 1), b2 = new JButton(Button 2)。 import .*。 ?Capturing an event ? addActionListener ? ActionListener ? actionPerformation ? //c13: 1/31/2023 54 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 import .*。 } public static void main(String[] args) { (new Applet1d(), 100, 50)。 import .*。 } } 1/31/2023 52 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 //: c13: // Console runs applets from the mand line. // applet code=Applet1d width=100 height=50 // /applet import .*。 (width, height)。 setupClosing(frame)。 (true)。 ()。 ().add(applet)。 } 1/31/2023 51 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 public static void run(JApplet applet, int width, int height) { JFrame frame = new JFrame(title(applet))。 (width, height)。 // The improved solution in JDK : // ( // EXIT_ON_CLOSE)。 } 1/31/2023 50 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 public static void setupClosing(JFrame frame) { (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 // Remove the word class: if((class) != 1) t = (6)。 import .*。 } } 1/31/2023 49 山東大學(xué)計(jì)算機(jī)學(xué)院人機(jī)交互與虛擬現(xiàn)實(shí)實(shí)驗(yàn)室 //: :bruceeckel:swing: // Tool for running Swing demos from the // console, both appl
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1