코드 테스트를 사용할 수 있으며 실행 결과는 눈길을 끄는 매우 눈길을 끄는데, 21 세기 초 초반 및 중등 학교 학생들에게 인기있는 손실이 주류가 아닌 것처럼 느껴집니다!
현재 날짜와 시간, 날짜 클래스 형식, 그래픽 인터페이스 개발 등을 얻는 것이 더 많은 참조 값입니다.
Java AWT는 동적 플래시 다이어그램 소스 코드를 구현합니다. 예 : 나는 당신에게 동적 다이어그램을 가로 채는 것이 편리하지 않습니다. 여기서는 참조를 위해 PNG 형식 다이어그램 만 차단하며 직접 테스트 할 수 있습니다.
패키지 cn.ecit.iloveyou; import java.awt.color; import java.awt.font; import java.awt.frame; import java.awt.graphics; import java.awt.event.windowevent; import java.awt.event.windowlistener; problic java.util.date; {public iloveyou () {// this.setComponentZorder (this, 2); this.setbounds (constant.x, constant.y, constant.width, constant.height); this.settitle (constant.string); this.set -Visible (true); this.setbackground (color.black); this.setextendedState (maximized_both); this.addwindowlistener (new windowlistener () {@override public void windowopened (windowevent e) {} @override public void windowiconified (windowevent e) {// todo 자동 생성 메소드 stub} @override public void windowdeiconized (windowevent e) {// to auto-generated method genterated method WindowDeactivated (WindowEvent e) {// TODO 자동 생성 메소드 스터브} @Override public void WindowClosing (WindowEvent e) {system.exit (0);}@public void windowclosed (WindowEvent e) {// to auto-generated method stub} @Override windowactivated ({// overriderated windowctivated). Stub}});} public void Paint (그래픽 g) {for (int i = 0; i <500; i ++) {g.setcolor (new color ((int) (int) (int) (int) (int) ((int), int), int)), (int), (int) (int) (math.random (256)); g. (g. draw) (math.random () * 1366), (int) (math .random () * 1366), (int) (math .random () * 768);} g.setfont (new font ( "Microsoft Yahei", font.bold, 150)); g.drawstring (constant.string, constant.x - constant.y + 250); 컬러 (int) (math.random () * 256), (int) (math.random () * 256), (int) (math.random () * 256))); g. drawstring (new date (). tolocalestring (), 5, 200); g.setcolor (new color ((int) (int) *) * (int), (int), (int), (int) (int) (math.random () * 256)); G.setfont (new font ( "Microsoft Yahei", font.bold, 200)); G.DrawString (constant.string1, 100, 650);}@public void run () {while (true) {thread.sleep (500);}; {e.printstacktrace ();} retaint ();}} public static void main (String [] args) {new 스레드 (new iloveyou ()). start ();}} 패키지 cn.ecit.iloveyou; import java.awt.toolkit; public class constant {static final int width = 800; static final int height = 450; static final int x = (Toolkit.getDefaultToolKit (). getScreensize (). (Toolkit.getDefaultToolKit (). getScreensize (). 높이 -Height) / 2; 정적 최종 int width_buff = 300; 정적 최종 최종 int height_buff = 100; 정적 최종 x_buff = (width -width_buff) / 2; 정적 최종 int_buff = (높이 -Height _Buff) / 2; static hinting string = "i love you!"; "★ 평생 ★";}실행 결과 :
요약
위의 내용은 프로그래머 전용 로맨스에 관한 것입니다. Java 출력 동적 플래시 맵 Iloveyou는 모든 사람에게 도움이되기를 바랍니다. 관심있는 친구들은이 사이트를 계속 참조 할 수 있습니다.
Java 그래픽 인터페이스 디자인 컨테이너 (JFrame)에 대한 자세한 설명
Java는 두 지점 사이의 콘솔 출력 거리를 구현합니다
Java 프로그래밍의 기본 사항 : 사용자 로그인 코드 공유 모방
단점이 있으면 메시지를 남겨 두십시오.