Top "Awt" questions

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

Image/Graphic into a Shape

I was wondering whether there is any way to convert an image/graphic into a Shape? For example, can I …

java image image-processing awt shape
How to make a line curve through points

I'm looking for a way to make a line curve through a number of points. It would be preferable to …

java awt curves splines
AppletViewer - "applet not initialized"

My code compiles and works just fine in both my browser and Eclipse, but for some reason the AppletViewer just …

java applet awt paint appletviewer
Re-paint on translucent frame/panel/component.

I'm trying to create a translucent window with Java on OSX and add a JLabel to it. This JLabel changes …

java swing macos awt paint
Graphics.drawString() Draws Over My Old String

I'm working on simple counter. My problem is that drawString() method draws new string over the old one. How to …

java graphics awt drawstring
Get key combinations

How can I get key combination of keys on keyboard E.G. (Ctrl+somekey, Alt+somekey) with Java? I use …

java linux awt keyevent vnc-viewer
Java Panel Double Buffering

wondered if anyone could point me in the right directon, i have developed a pong game and it needs double …

java swing awt doublebuffered
String length in pixels in Java

Is there a way to calculate the length of a string in pixels, given a certain java.awt.Font object, …

java string fonts awt fontmetrics
Fake X11 display?

I have a Java program using AWT which I would like to run on a headless system. The display for …

java linux awt x11
How to flip BufferedImage in java

I get RGB24 byte array and want to show it in Java. public void getByteArray(byte byteArray[]){ int count1 = 0; byte …

java swing awt rgb bufferedimage