xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 0.01M
    文件類(lèi)型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-02-20
  • 語(yǔ)言: Java
  • 標(biāo)簽:

資源簡(jiǎn)介

Java入門(mén)-伸展文字(實(shí)例30).zip

資源截圖

代碼片段和文件信息

import?java.awt.*;
import?java.applet.*;

//伸展文字

public?class?ExtendTextapplet?extends?applet?implements?Runnable{
Image?image;?//該applet的Image對(duì)象
Graphics?graphics;??//該applet的Graphics對(duì)象
int?appletWidthappletHeight;?//applet的高度寬度
String?message;?//顯示文本
Thread?thread;?//動(dòng)畫(huà)線(xiàn)程
int?ypoint=0?xheight;?//顯示文本的Y坐標(biāo)和高度
int?phase?=?0;?//狀態(tài)參數(shù)
Font?font;?//顯示文本的字體

public?void?init(){
font=new?Font(“TimesRoman“Font.BOLD30);?//實(shí)例化字體
appletWidth?=?getSize().width;?//得到applet的寬度
appletHeight?=?getSize().height;??//得到applet的高度
xheight?=?appletHeight?/?3;?//顯示文字高度值
ypoint?=?xheight;?//顯示文字的Y坐標(biāo)值
message?=?getParameter(“Text“);?//得到顯示信息
if(message==null)
message?=?“伸展文字“;?//設(shè)置默認(rèn)信息
image?=?createImage(appletWidthappletHeight);??//得到Image實(shí)例
graphics?=?image.getGraphics();??//得到Graphics實(shí)例
}??
??
public?void?start(){
if(thread?==?null){
thread?=?new?Thread(this);??//實(shí)例化線(xiàn)程
thread.start();??//運(yùn)行線(xiàn)程
}
}?????
???
public?void?upd

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????143846??2004-05-14?18:01??36-1.bmp
?????文件??????143846??2004-05-14?18:01??36-2.bmp
?????文件?????????201??2004-05-13?18:45??ExtendText.HTML
?????文件????????2664??2004-05-19?00:31??ExtendTextapplet.class
?????文件????????3189??2004-05-19?00:30??ExtendTextapplet.java

評(píng)論

共有 條評(píng)論

相關(guān)資源