For faster navigation, this Iframe is preloading the Wikiwand page for 애브스트랙트 윈도 툴킷.

애브스트랙트 윈도 툴킷

일부 AWT 예제를 포함한 윈도 폼

애브스트랙트 윈도 툴킷(Abstract Window Toolkit, AWT)은 자바의 본 플랫폼에 의존하는 윈도, 그래픽스, 사용자 인터페이스 위젯 툴킷이다. AWT는 자바 프로그램을 위한 그래픽 사용자 인터페이스(GUI)를 제공하는 표준 API인 자바 파운데이션 클래스(JFC)의 일부이다. AWT는 수많은 자바 ME를 위한 GUI 툴킷이기도 하다. 이를테면 접속 장치 구성(CDC) 프로파일은 AWT 지원을 위해 휴대 전화에 자바 런타임을 요구한다.

예시

[편집]
import java.applet;
import java.awt.event.*;

public class AppletApplication extends Applet implements WindowListener {

   public static void main(java.lang.String[] args) {
      AppletApplication applet = new AppletApplication();
      Frame w = new Frame("Applet");
      w.addWindowListener(applet);
      w.add("Center", applet);
      w.setSize(50, 50);
      w.setVisible(true);
      applet.init();
      applet.start();
   }

   public void paint(Graphics g) {
      super.paint(g);
      g.drawString("VASU", 10, 10);	// Upper left corner
   }

   public void windowClosing(WindowEvent e) {
      System.exit(0);	// Exit the application when the window is closed
   }

   // Required methods
   public void windowActivated(WindowEvent e) { }
   public void windowClosed(WindowEvent e) { }
   public void windowDeactivated(WindowEvent e) { }
   public void windowDeiconified(WindowEvent e) { }
   public void windowIconified(WindowEvent e) { }
   public void windowOpened(WindowEvent e) { }

}

같이 보기

[편집]

외부 링크

[편집]
{{bottomLinkPreText}} {{bottomLinkText}}
애브스트랙트 윈도 툴킷
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?