GO-V.ORG
As seen in

Abstract Window Toolkit

The Abstract Window Toolkit (AWT) is Java's original platform-dependent windowing, graphics, and user-interface widget toolkit, preceding Swing. The AWT is part of the Java Foundation Classes (JFC) — the standard API for providing a graphical user interface (GUI) for a Java program. AWT is also the GUI toolkit for a number of Java ME profiles. For example, Connected Device Configuration profiles require Java runtimes on mobile telephones to support the Abstract Window Toolkit. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

The Abstract Window Toolkit (AWT) is Java's original platform-dependent windowing, graphics, and user-interface widget toolkit, preceding Swing. The AWT is part of the Java Foundation Classes (JFC) — the standard API for providing a graphical user interface (GUI) for a Java program. AWT is also the GUI toolkit for a number of Java ME profiles. For example, Connected Device Configuration profiles require Java runtimes on mobile telephones to support the Abstract Window Toolkit. package org.wikipedia.examples; import java.awt.Frame; import java.awt.Label; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class MyApp { public static void main(String[] args) { Frame frame = new Frame("Application"); frame.add(new Label("Hello!")); frame.setSize(500, 500); frame.setLocationRelativeTo(null); // Centers the window frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { frame.dispose(); // Releases native screen resources } }); frame.setVisible(true); } }

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Abstract Window Toolkit". 1788574608. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373299621

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·