Top "Awt" questions

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

Getting a HeadlessException: No X11 DISPLAY variable was set

Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which …

java swing awt
Drawing in Java using Canvas

I want to draw in Java's Canvas but can't get it work because I don't know what I'm doing. Here's …

java swing graphics canvas awt
How can I check that JButton is pressed? If the isEnable() is not work?

How can I check that JButton is pressed? I know that there is a method that its name is "isEnabled" …

java swing awt jbutton
JOptionPane YES NO OPTION

I got an JOptionPane and yes and no buttons. But, whichever button you click it still exists. HELP! Heres the …

java swing applet awt joptionpane
Java: using an image as a button

I would like to use an image as a button in Java, and I tried to do this: BufferedImage buttonIcon = …

java swing awt jbutton
"Always on Top" Windows with Java

In Java, is there a way to have a window that is "Always on top" regardless if the user switches …

java user-interface swing awt
Copying to the clipboard in Java

I want to set the user's clipboard to a string in a Java console application. Any ideas?

java string clipboard awt
Loading resources like images while running project distributed as JAR archive

I am having a error for my GUI. Trying to set title bar icon then be included in a Runnable …

java swing nullpointerexception awt embedded-resource
addMouseListener for a JPanel

Today I have a problem.. My program make a 8x8 grid and show the coord when I click on a …

java swing jpanel awt mouselistener
Evaluating Checkbox Boolean Value

I'm sure this is a rediculously easy question, but I just can't find the answer to it anywhere. I have …

java swing awt jcheckbox