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

正文內(nèi)容

[理學(xué)]java第二版課后作業(yè)答案-資料下載頁

2025-01-09 00:32本頁面
  

【正文】 ava)。 ()。 (new Color(100,100,100))。 add(list)。 add(button)。 add(text)。 setSize(300,320)。 setVisible(true)。 validate()。 setDefaultCloseOperation()。 } } 8. import .*。 import .*。 import .*。 public class Xiti8_8 { public static void main(String args[]) { MoveFrame f=new MoveFrame()。 (12,12,300,300)。 (true)。 (移動 )。 ()。 ()。 } } class MoveFrame extends JFrame implements ActionListener { JButton controlButton,movedButton。 public MoveFrame() { controlButton=new JButton(單擊我運動另一個按鈕 )。 (this)。 movedButton=new JButton()。 (new Color(12,200,34))。 setLayout(null)。 add(controlButton)。 add(movedButton)。 (10,30,180,30)。 (100,100,20,20)。 } public void actionPerformed(ActionEvent e) { int x=().x。 int y=().y。 x=x+5。 y=y+1。 (x,y)。 if(x200) { x=100。 y=100。 } } } 9. import .*。 import .*。 import .*。 public class E { public static void main(String args[]) { JFrame fr=new JFrame()。 (new LP(),)。 (true)。 (12,12,300,300)。 ()。 ()。 } } class LP extends JLayeredPane implements MouseListener,MouseMotionListener { JButton button[]。 JTextField text[]。 int x,y,a,b,x0,y0。 LP() { setLayout(new FlowLayout())。 button=new JButton[8]。 for(int k=0。k。k++) { button[k]=new JButton(用鼠標(biāo)拖動我 )。 add(button[k])。 button[k].addMouseListener(this)。 button[k].addMouseMotionListener(this)。 } text=new JTextField[10]。 for(int k=0。k。k++) { text[k]=new JTextField(用鼠標(biāo)拖動我 )。 text[k].addMouseListener(this)。 add(text[k])。 text[k].addMouseMotionListener(this)。 } addMouseMotionListener(this)。 } public void mousePressed(MouseEvent e) { Component =null。 =(Component)()。 setLayer(,)。 a=().x。 b=().y。 x0=()。 //獲取鼠標(biāo)在事件源中的位置坐標(biāo) y0=()。 } public void mouseReleased(MouseEvent e) { Component =null。 =(Component)()。 setLayer(,)。 Component ponent[]=()。 for(int k=0。k。k++) { Rectangle rect1=ponent[k].getBounds()。 Rectangle rect2=()。 if((rect2)amp。amp。!=ponent[k]) { ponent[k].setVisible(false)。//(ponent[k])。 } } } public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) {} public void mouseClicked(MouseEvent e){} public void mouseMoved(MouseEvent e){} public void mouseDragged(MouseEvent e) { Component =null。 if(() instanceof Component) { =(Component)()。 a=().x。 b=().y。 x=()。 //獲取鼠標(biāo)在事件源中的位置坐標(biāo) y=()。 a=a+x。 b=b+y。 (ax0,by0)。 } } } 10. import .*。 import .*。 import .*。 public class E { public static void main(String args[]) { JFrame fr=new JFrame()。 (new MoveButton(),)。 (true)。 (12,12,300,300)。 ()。 ()。 } } class MoveButton extends JLayeredPane implements KeyListener { JButton b[]=new JButton[8]。 int x,y。 MoveButton() { setLayout(new FlowLayout())。 for(int i=0。i8。i++) { b[i]=new JButton(+i)。 b[i].addKeyListener(this)。 add(b[i])。 } } public void keyPressed(KeyEvent e) { int moveDistance=1。 Component =(Component)()。 int x=(int)().x。 int y=(int)().y。 Component ponent[]=()。 if(()==) { y=ymoveDistance。 (x,y)。 Rectangle Rect=()。 for(int k=0。k。k++) { Rectangle orthRect=ponent[k].getBounds()。 if((orthRect)amp。amp。!=ponent[k]) { y=y+moveDistance。 (x,y)。 break。 } } if(y=0) y=10。 } else if(()==) { y=y+moveDistance。 (x,y)。 Rectangle Rect=()。 for(int k=0。k。k++) { Rectangle orthRect=ponent[k].getBounds()。 if((orthRect)amp。amp。!=ponent[k]) { y=ymoveDistance。 (x,y)。 break。 } } if(y=300) y=300。 } else if(()==) { x=xmoveDistance。 (x,y)。 Rectangle Rect=()。 for(int k=0。k。k++) { Rectangle orthRect=ponent[k].getBounds()。 if((orthRect)amp。amp。!=ponent[k]) { x=x+moveDistance。 (x,y)。 break。 } } if(x=0) x=0。 } else if(()==) { x=x+moveDistance。 (x,y)。 Rectangle Rect=()。 for(int k=0。k。k++) { Rectangle orthRect=ponent[k].getBounds()。 if((orthRect)amp。amp。!=ponent[k]) { x=xmoveDistance。 (x,y)。 break。 } } if(x=300) x=300。 } } public void keyTyped(KeyEvent e) {} public void keyReleased(KeyEvent e) {} } 第 十 章 作業(yè)題 1. import .*。 import .*。 import .*。 public class ZuoYe10_1{ public static void main(String args[]){ MathWindow win=new MathWindow()。 } } class MathWindow extends JFrame{ JTextField inputText
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1