2008 e-learning T050050



Similar documents
Assignment_.java /////////////////////////////////////////////////////////////////////// // 課題 星の画像がマウスカーソルを追従するコードを作成しなさい 次 ///////////////////

I. (i) Foo public (A). javac Foo.java java Foo.class (C). javac Foo java Foo (ii)? (B). javac Foo.java java Foo (D). javac Foo java Foo.class (A). Jav

次の演習課題(1),(2)のプログラムを完成させよ

Microsoft PowerPoint prog1_doc2x.pptx

KeyListener init addkeylistener addactionlistener addkeylistener addkeylistener( this ); this.addkeylistener( this ); KeyListener public void keytyped

Chapter JDK KeyListener keypressed(keyevent e ) keyreleased(keyevent e ) keytyped(keyevent e ) MouseListener mouseclicked(mouseeven

I 4 p.2 4 GUI java.awt.event.* import /* 1 */ import mouseclicked MouseListener implement /* 2 */ init addmouselistener(this) this /* 3 */ this mousec

Microsoft PowerPoint prog1_doc2.pptx

Java演習(9) -- クラスとメソッド --

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet

JAVA入門

19 3!! (+) (>) (++) (+=) for while 3.1!! (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics;

Java言語 第1回

< F2D82518CC282CC D2E6A7464>

< F2D82518E9F8AD CC834F CC8CFC82AB82C68D4C>

Java言語 第1回

IE6 2 BMI chapter1 Java 6 chapter2 Java 7 chapter3 for if 8 chapter4 : BMI 9 chapter5 Java GUI 10 chapter6 11 chapter7 BMI 12 chap

< F2D A839382CC906A2E6A7464>

< F2D F B834E2E6A7464>

< F2D825282CC947B909482CC A815B83682E6A>

< F2D82518E9F8AD CC95BD8D7388DA93AE2E6A7464>

II Java :30 12:00 I. I IV II. III. IV. ( a d) V. : this==null, T == N A ActionListener C class D actionperformed G getsource I implements K

Java言語 第1回

アプレットの作成

Java 2 - Lesson01

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

I. (i) Java? (A). Foo_Bar (B). G day (C). 999 (D). Golgo13 (ii)? (A). Java public (B). Java (C). Java JavaScript (D). Java C Java C (iii)? (A). Java (


Object MenuComponent MenuBar MenuItem Menu CheckboxMenuItem

r3.dvi

:30 12:00 I. I VII II. III. IV. ( a d) V. VI : this==null, T == N A ActionListener A addactionlistener C class D actionperforme

Java演習(4) -- 変数と型 --


4.10 AddCardRow.java AddCardSet.java

try catch Exception Java try catch try { } catch ( Exception e ) { } e 16-1 try catch 0 try { int x = 0; int y = 10 / x; } catch ( Exception e ) { Sys

< F2D BCA82CC978E89BA82CC8EC08CB12E6A7464>

r3.dvi

10/31 Java AWTの基本構造(Frameクラスの継承) 演習課題資料

HTML HTML HTML

5 p Point int Java p Point Point p; p = new Point(); Point instance, p Point int 2 Point Point p = new Point(); p.x = 1; p.y = 2;

Transcription:

e-learning T050050 e-learning B NintendoDS e-learning html 1 e-learning Java Applet html 2

2008 e-learning T050050

1 1 1.1.................................. 1 1.2............................ 1 2 2 2.1.............................. 2 2.2.................................. 3 2.2.1....................... 3 2.2.2................................. 3 2.2.3 /.............................. 3 2.2.4............................ 4 2.2.5.............................. 4 2.2.6 Cloze........................ 4 2.2.7.............................. 5 2.2.8.......................... 6 2.2.9............................ 6 2.3 html.......................... 7 2.3.1............................. 7 2.3.2............................. 8 2.3.3............................... 8 2.4 e-learning....................... 9 2.4.1 e-learning...................... 9 2.4.2............................... 9 3 11 3.1............................ 11 3.2 Java............................... 11 3.3.................................. 16 4 18 5 19

1 1.1 1 1.2 e-learning NintendoDS 1

2 2.1 1 1 1 Yes 1 Yes No Yes No 2

2.2 [1] [3] 2.2.1 html 0 html 2.2.2 / 2.2.3 / 2 3

2.2.4 2 Yes html 2.2.5 2.2.6 Cloze 1 4

1: Cloze {1:MULTICHOICE: = {1:SHORTANSWER: = 2.2.7 1. {name 1 100% 5

0 2. 3. 0 2.2.8 html 2.2.9 6

2.3 html x 2 a n N html [7] n=1 2.3.1 <table> <tr> <td>a</td> <td>b</td> </tr> </table> <table> <\tabale> <tr> 1 <\tr> 1 <td> 1 <\td> 1 2 A B 7

2: 2.3.2 <td align="center"></td> center left right <td valign="middle"></td> middle top bottom 2.3.3 = N n=1 <td colspan="x"></td> x <td rowspan="x"></td> 8

2.4 e-learning 2.4.1 e-learning e-learning 1. 1 2. 2.4.2 e-learning 1. 4 2. 3 3 4 1 9

n 3. 2 3 4 1 n 2 4. N n=1 4 1 2 2 4 10

5. 4 3 3.1 e-learning e-learning e-learning Java Applet [2] [4] [5] [6] 3.2 Java 11

Button = new Button(" "); ActionListener GridLayout(1, 3) 1 3 BorderLayout.SOUTH MouseMotionListener 3 3: 12

MouseListener MouseListener 2 Java Applet import java.applet.*; import java.awt.event.*; import java.awt.*; public class Note extends Applet implements MouseListener, MouseMotionListener, ActionListener{ Image imgbuf; Graphics gbuf; //java int x, y; // int ox, oy; // int w, h; // int type; // Button btn1 = new Button(" "); Button btn2 = new Button(" "); Button btn3 = new Button(" "); // public void init(){ // ( ) this.setlayout(new BorderLayout()); // 13

Panel pnl = new Panel(new GridLayout(1, 3)); // pnl.add(btn1); pnl.add(btn2); pnl.add(btn3); // this.add(pnl, BorderLayout.SOUTH); // Dimension size = getsize(); w = size.width; h = size.height; // imgbuf = createimage(w, h); gbuf = imgbuf.getgraphics(); //java type = 1; // addmouselistener(this); addmousemotionlistener(this); btn1.addactionlistener(this); btn2.addactionlistener(this); btn3.addactionlistener(this); public void paint(graphics g){ g.drawimage(imgbuf, 0, 0, this); //java public void update(graphics g){ paint(g); public void mouseentered(mouseevent e){ public void mouseexited(mouseevent e){ public void mousepressed(mouseevent e){ ox = e.getx(); // // // 14

oy = e.gety(); // public void mouseclicked(mouseevent e){ // x = e.getx(); y = e.gety(); // if(type == 1){ // gbuf.setcolor(color.black); gbuf.drawoval(x, y, 1, 1); //java else if(type == 2){ // gbuf.setcolor(color.white); gbuf.filloval(x-5, y-5, 10, 10); //java repaint(); public void mousereleased(mouseevent e){ // public void mousedragged(mouseevent e){ // x = e.getx(); y = e.gety(); // if(type == 1){ // gbuf.setcolor(color.black); gbuf.drawline(ox, oy, x, y); //java ox = x; oy = y; // else if(type == 2){ // gbuf.setcolor(color.white); gbuf.filloval(x-5, y-5, 10, 10); //java repaint(); 15

public void mousemoved(mouseevent e){ // public void actionperformed(actionevent e){ // if(btn1 == e.getsource()){ // type = 1; // else if(btn2 == e.getsource()){ // type = 2; // else if(btn3 == e.getsource()){ // type = 1; // gbuf.clearrect(0, 0, w, h); //java repaint(); 3.3 Java Applet html <applet code="name.class" width="width" height="height"></applet> Applet name.class Java class width height Applet e-learning html class codebase= class 2 e-learning 16

html 4 <center> // <p> // <table border="1"> // <tr> <td> <applet height="500" width="500" code="note.class" codebase=" Note.class "></applet> </td> <td> <applet height="500" width="500" code="note.class" codebase=" Note.class "></applet> </td> </tr> </table> </p> // // // <font color="#800000"><big> </big> <font color="#000000"> <table> <tr> <td> </td> <th> </th> <td> </td> </tr> <tr> <td> </td> <th> </th> <td> </td> </tr> <tr> <td> </td> <th> </th> <td> </td> </tr> </table> </center> 17

4: 4 e-learning Java 18

5 [1] B 2003 [2] Java 2003 [3] 2007 [4] Java JavaDrive http://www.javadrive.jp/index.html [5] Java http://www.tohoho-web.com/java/index.htm [6] http://www5c.biglobe.ne.jp/ ecb/index.html [7] http://www.ink.or.jp/ bigblock/index.html 19