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

< F2D E E6A7464>

橡告改.PDF

(Microsoft PowerPoint - \223\306\217KJAVA\221\346\202R\224\ ppt)

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;

< F2D B825082CC96E291E82E6A7464>

< F2D834F838C A815B A CC>


< F2D B838A835882CC8CF68EAE2E6A7464>

Microsoft PowerPoint - OOP.pptx

Java言語 第1回

表示の更新もそういた作業のひとつに当たる スレッドの使用アニメーション アニメーションやシミュレーションなどは画面の更新が一定のタイミングで行われていく この連続した画面の更新をスレッドを利用して行う しかし paint() メソッドを直接呼び出して表示を更新することはできない その理由

< F2D89BA8EE882C E6A7464>

< F2D82518CC282CC D2E6A7464>

< F2D82B682E182F182AF82F12E6A7464>

< F2D92DE82E8914B82CC977088D32E6A7464>

< F2D82518E9F8AD CC834F CC8CFC82AB82C68D4C>

以下に java.awt.graphics クラスの主なメソッドを示す (Graphics クラスの ) メソッド drawline(int x1, int y1, int x2, int y2) drawrect(int x, int y, int width, int height) fillr

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>

PowerPoint Presentation

< F2D82518E9F8AD CC95BD8D7388DA93AE2E6A7464>

< F2D A838B838D96402E6A7464>

Microsoft PowerPoint - prog11.ppt

< F2D8EA CE909482CC92EA82852E6A7464>

問1

Animals サンプル Step 1 動物の種類を指定しておいて クリックした場所に画像を貼り付ける < レイアウトについて > 前回は ラベルやボタンの位置を座標で設定した Absolute Layout を選んだためである レイアウトは どのようにボタンなどのコンポーネントを配置するかを決定す

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

GUIプログラムⅤ

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 +=

Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up

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 (

Microsoft PowerPoint ppt

Microsoft Word - Java3.DOC

手書認識 グラフ描画 Step2-2 手書認識 : 認識結果を PaintPanel で描画する < 属性付き文字列 AttributedString> 標準出力では分かりにくいうえに認識結果を使えないので 認識するごとに PaintPanel に文字を描画することにする ここで 数式はただの文字列


Chapter 20. [ ] ; [ ] = new [ ] ; Color colors [ ] = new Color[ 20 ]; // 20 Button operations [ ] = new Button[ 10 ]; // 10 colors[ 3 ] = new Color( 1

r14.dvi


Java演習(2) -- 簡単なプログラム --

Object MenuComponent MenuBar MenuItem Menu CheckboxMenuItem

Microsoft PowerPoint - prog10.ppt

r3.dvi

Animals サンプル Step3 張り付けた動物の上をクリックすると それぞれの鳴き声で鳴く その鳴く間 一定時間 ( ここでは 1 秒間 ) 画像が別のものに変わる <アニメーションの基礎 : タイマーについて> アニメーションは アプリケーションが指定する間 一定間隔でどんどん画像をおきかえ

: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) -- 変数と型 --

Microsoft PowerPoint - prog10.ppt

GUIプログラムⅣ


4.10 AddCardRow.java AddCardSet.java

tn_soturon_sjis.dvi

ガイダンス

ÿþ˜u#u·0¹0Æ0à0

text_12.dvi

Microsoft PowerPoint - swing3.ppt

r2.dvi

Microsoft Word 年度情報コミュニケーション実験II(Ver0.9)c.docx

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

Microsoft PowerPoint - prog11.ppt

ガイダンス

< F2D BCA82CC978E89BA82CC8EC08CB12E6A7464>

Microsoft PowerPoint - swing2.ppt

ソフトウェア基礎演習 課題

ガイダンス

r3.dvi

ソフトウェア開発方法論2

アプレットⅣ

2

text_13.dvi

r4.dvi

B 10 : N ip2003f10.tex B : 9/12/ :02 p.1/71

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

HTML HTML HTML

Prog1_12th

progj-text.dvi

vol.30.}...`.X...b.h

PowerPoint プレゼンテーション

Thread

I. java.awt.rectangle java.lang.math random Java TM API java.awt Rectangle Rectangle (x,y)... public int x Rectangle X public int y Rectangle Y public

r2.dvi

( ) p.1 x y y = ( x ) 1 γ γ = filtergamma.java import java.applet.*; public class filtergamma extends Applet{ Image img; Image new_img; publi

6 p.1 6 Java GUI GUI paintcomponent GUI mouseclicked, keypressed, actionperformed mouseclicked paintcomponent thread, 1 GUI 6.0.2, mutlithread C

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;

PowerPoint プレゼンテーション

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