java语言程序设计基础篇第十版第十四章练习答案.docx

上传人:b****1 文档编号:14528850 上传时间:2023-06-24 格式:DOCX 页数:17 大小:39.47KB
下载 相关 举报
java语言程序设计基础篇第十版第十四章练习答案.docx_第1页
第1页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第2页
第2页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第3页
第3页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第4页
第4页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第5页
第5页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第6页
第6页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第7页
第7页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第8页
第8页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第9页
第9页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第10页
第10页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第11页
第11页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第12页
第12页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第13页
第13页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第14页
第14页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第15页
第15页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第16页
第16页 / 共17页
java语言程序设计基础篇第十版第十四章练习答案.docx_第17页
第17页 / 共17页
亲,该文档总共17页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

java语言程序设计基础篇第十版第十四章练习答案.docx

《java语言程序设计基础篇第十版第十四章练习答案.docx》由会员分享,可在线阅读,更多相关《java语言程序设计基础篇第十版第十四章练习答案.docx(17页珍藏版)》请在冰点文库上搜索。

java语言程序设计基础篇第十版第十四章练习答案.docx

java语言程序设计基础篇第十版第十四章练习答案

公司内部编号:

(GOOD-TMMT-MMUT-UUPTY-UUYY-DTTI-9018)

 

java语言程序设计基础篇第十版第十四章练习答案

01

publicclassExercise14_01extendsApplication{

@OverrideNotneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

02

publicclassExercise14_02extendsApplication{

@OverrideNotneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

03

publicclassExercise14_03extendsApplication{

@OverrideOneistousethehintinthebook.

ArrayListlist=newArrayList<>();

for(inti=1;i<=52;i++){

(i);

}

HBoxpane=newHBox(5);

;

().add(newImageView("image/card/"+(0)+".png"));

().add(newImageView("image/card/"+

(1)+".png"));

().add(newImageView("image/card/"+

(2)+".png"));

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

04

publicclassExercise14_04extendsApplication{

@Overridedd(txt);

}

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

05

publicclassExercise14_05extendsApplication{

@Overridedd(txt);

}

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}}

05

publicclassExercise14_05extendsApplication{

@Overridedd(txt);

}

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

06

publicclassExercise14_06extendsApplication{

@Overridedd(rectangle);

}

}

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

07

publicclassExercise14_07extendsApplication{

@OverrideNotneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

08

publicclassExercise14_08extendsApplication{

@Overrideng"),j,i);

}

}

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

09

publicclassExercise14_09extendsApplication{

@OverrideNotneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

classFanPaneextendsPane{

doubleradius=50;

publicFanPane(){

Circlecircle=newCircle(60,60,radius);

;

;

getChildren().add(circle);

Arcarc1=newArc(60,60,40,40,30,35);

;ddAll(arc1,arc2,arc3,arc4);

}

}

10

publicclassExercise14_10extendsApplication{

@OverrideddAll,;

Arcarc2=newArc(100,140,50,20,180,180);

;

;

().addAll(ellipse,arc1,arc2,

newLine(50,40,50,140),newLine(150,40,150,140));

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

11

publicclassExercise14_11extendsApplication{

@OverrideddAll(circle,ellipse1,ellipse2,

circle1,circle2,line1,line2,line3,arc);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

12

publicclassExercise14_12extendsApplication{

@OverrideddAll(r1,text1,r2,text2,r3,text3,r4,text4);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

13

publicclassExercise14_13extendsApplication{

@OverrideddAll(arc1,text1,arc2,text2,arc3,text3,arc4,text4);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

14

publicclassExercise14_14extendsApplication{

@OverrideddAll(r1,r2,line1,line2,line3,line4);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

15

publicclassExercise14_15extendsApplication{

@OverrideddAll(polygon,text);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

16

publicclassExercise14_16extendsApplication{

@Overrideind().divide(3));

().bind());

().bind().divide(3));

;

Lineline2=newLine(0,0,0,0);

().bind().multiply

(2).divide(3));

().bind());

().bind().multiply

(2).divide(3));

;

Lineline3=newLine(0,0,0,0);

().bind().divide(3));

().bind().divide(3));

().bind());

;

Lineline4=newLine(0,0,0,0);

().bind().multiply

(2).divide(3));

().bind().multiply

(2).divide(3));

().bind());

;

().addAll(line1,line2,line3,line4);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

17

publicclassExercise14_17extendsApplication{

@OverrideddAll(arc,line1,line2,line3,circle,line4,line5,line6,line7,line8);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

18

publicclassExercise14_18extendsApplication{

@OverrideddAll(polyline,line1,line2,

line3,line4,line5,line6,text1,text2);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

19

publicclassExercise14_19extendsApplication{

@OverrideddAll(polyline1,polyline2,line1,line2,

line3,line4,line5,line6,text1,text2,text3,

text4,text5,text6,text7);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

20

publicclassExercise14_20extendsApplication{

@Overridedd(newLine(x1,y1,x2,y2));

dd(newLine(x2,y2,(x2+(arctan+set45)*arrlen)),

((y2))+(arctan+set45)*arrlen)));

().add(newLine(x2,y2,(x2+(arctan-set45)*arrlen)),

((y2))+(arctan-set45)*arrlen)));

}

/**

*ThemainmethodisonlyneededfortheIDEwithlimited

*JavaFXsupport.Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

21

publicclassExercise14_21extendsApplication{

@Overrideistance(x2,y2)+"");

().addAll(circle1,circle2,line,text);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

22

publicclassExercise14_22extendsApplication{

@OverrideddAll(circle1,circle2,line,text1,text2);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

23

publicclassExercise14_23extendsApplication{

@OverrideddAll(r1,r2,text);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

24

publicclassExercise14_24extendsApplication{

@OverrideddAll(polygon,newCircle(x5,y5,10),text);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

25

publicclassExercise14_25extendsApplication{

@OverrideddAll(circle,polygon);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

26

publicclassExercise14_26extendsApplication{

@OverrideddAll(clock1,clock2);

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

27

publicclassExercise14_27extendsApplication{

@Override

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

classDetailedClockPaneextendsPane{

privateinthour;

privateintminute;

privateintsecond;

lear();

getChildren().addAll(circle,sLine,mLine,hLine);

dd(newLine(xOuter,yOuter,xInner,yInner));

}

dd(text);

}

}

}

28

publicclassExercise14_28extendsApplication{

@Override

Notneededforrunningfromthecommandline.

*/

publicstaticvoidmain(String[]args){

launch(args);

}

}

classClockPaneWithBooleanPropertiesextendsPane{

privateinthour;

privateintminute;

privateintsecond;

privatebooleanhourHandVisible=true;

privatebooleanminuteHandVisible=true;

privatebooleansecondHandVisible=true;

publicbooleanisHourHandVisible(){

returnhourHandVisible;

}

publicvoidsetHourHandVisible(booleanhourHandVisible){

=hourHandVisible;

paintClock();

}

publicbooleanisMinuteHandVisible(){

returnminuteHandVisible;

}

publicvoidsetMinuteHandVisible(booleanminuteHandVisible){

=minuteHandVisible;

paintClock();

}

publicbooleanisSecondHandVisible(){

returnsecondHandVisible;

}

publicvoidsetSecondHandVisible(booleansecondHandVisible){

=secondHandVisible;

paintClock();

}

lear();

getChildren().addAll(circle,t1,t2,t3,t4);

if(secondHandVisible){

getChildren().add(sLine);

}

if(minuteHandVisible){

getChildren().add(mLine);

}

if(hourHandVisible){

getChildren().add(hLine);

}

}

}

29

publicclassExercise14_29extendsApplication{

finalstaticdoubleHGAP=20;

finalstaticdoubleVGAP=20;

finalstaticdoubleRADIUS=5;

finalstaticdoubleLENGTH_OF_SLOTS=40;

finalstaticdoubleLENGTH_OF_OPENNING=15;

finalstaticdoubleY_FOR_FIRST_NAIL=50;

finalstaticdoubleNUMBER_OF_SLOTS=9;

finalstaticdoubleNUMBER_OF_ROWS=NUMBER_OF_SLOTS-2;

@Overridedd(c);

}

}

dd(newLine(x,y,x,y+LENGTH_OF_SLOTS));

}

dd(newLine(centerX-(NUMBER_OF_ROWS-1)*HGAP/2-HGAP,

y+LENGTH_OF_SLOTS,centerX-(NUMBER_OF_ROWS-1)*HGAP/2+NUMBER_OF_ROWS*HGAP,

y+LENGTH_OF_SLOTS));

dd(newLine(centerX+HGAP/2,Y_FOR_FIRST_NAIL+RADIUS,

centerX-(NUMBER_OF_ROWS-1)*HGAP/2+NUMBER_OF_ROWS*HGAP,y));

().add(newLine(centerX-HGAP/2,Y_FOR_FIRST_NAIL+RADIUS,

centerX-(NUMBER_OF_ROWS-1)*HGAP/2-HGAP,y));

dd(newLine

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 初中教育 > 语文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2