Top "Awt" questions

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

Change JLabel Font size

I was trying to change the font size of JLabel, I tried to set Font but it is always the …

java swing fonts awt jlabel
Setting java.awt.headless=true programmatically

I'm trying to set java.awt.headless=true during the application startup but it appears like I'm too late and …

java awt headless
Can you increase line thickness when using Java Graphics for an applet? I don't believe that BasicStroke works

I am having trouble adjusting line thickness. Can I do that in Graphics or do i have to do it …

java applet awt paint graphics2d
What does SwingUtilities.invokeLater do?

What does SwingUtilities.invokeLater do? Is it just delaying the execution of a block of codes inside its run method? …

java multithreading swing awt event-dispatch-thread
Turn an array of pixels into an Image object with Java's ImageIO?

I'm currently turning an array of pixel values (originally created with a java.awt.image.PixelGrabber object) into an Image …

java image awt toolkit javax.imageio
Draw rectangle border thickness

Is it possible to do draw a rectangle with a given border thickness in an easy way?

java swing awt
Border with rounded corners & transparency

The following screenshot shows a test of TextBubbleBorder1. I would like to make the corners of the component that are …

java swing awt border transparency
Convert text content to Image

Is there out any Java library that allows converting text content to image files? I only know of ImageMagick (JMagick …

java image text fonts awt
Making a JScrollPane automatically scroll all the way down

I am trying to implement a JScrollPane with a JTextArea. The JTextArea is being appended to, and I want the …

java swing awt jscrollpane jtextarea
How to use FileDialog?

I created an interface and I'd like to add a function that allows user to open a file. I'm using …

java awt