Top "Awt" questions

The Abstract Window Toolkit (AWT) is Java's original platform-independent windowing, graphics, and user-interface widget toolkit.

Why is paint()/paintComponent() never called?

For the last two days I have tried to understand how Java handles graphics, but have failed miserably at just …

java swing awt paint
What does ActionEvent e mean?

I am learning Java and would really like to have a deeper understanding of what the ActionEvent e perameter means …

java awt actionlistener actionevent
How to use margins and paddings with Java GridLayout

How can I keep a JLabel from displaying flush against the side of the frame? I have the same problem …

java swing layout awt layout-manager
Using Java to send key combinations

As per this previous link (How to send keyboard outputs) Java can simulate a key being pressed using the Robot …

java awt keypress awtrobot
Drawing a line with arrow in Java

Can anyone guide me how to code the arrow line in different direction. wa and wl is positive the rectangle …

java graphics awt
The import java.awt cannot be resolved

I have installed the Eclipse [Version: Photon Release (4.8.0)] and JDK 10 on a MacBookPro with macOS 10.13.5 When I write in my …

java awt java-10
What is java.awt.Component.getName() and setName() used for?

What is java.awt.Component.getName() used for? It always seems to be null in the applications I build with …

java awt
Java Swing Text Editor

Possible Duplicate: What components should I use for building a Java WYSIWYG HTML editor I'm a total newbie in Java …

java swing awt text-editor styledtext
Changing Border Color of AWT TextField

In AWT application I need to set border color of TextField. In JTextField, I know that we do can do …

java swing awt textfield border
Java and GUI - Where do ActionListeners belong according to MVC pattern?

I'm currently writing a template Java application and somehow, I'm not sure about where the ActionListeners belong if I wanted …

java swing user-interface model-view-controller awt