Top "Awt" questions

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

How to draw a Round rectangle in java with normal rectangle outline

For my java application i need a Round rectangle with an outline that looks like a normal rectangle, like this …

java swing awt java-2d paint
Calling awt Frame methods from subclass

This question is about Frames, Java and Processing. This questions sounds pretty convoluted but its really not. I'll try keep …

java awt processing
If Swing is deprecated, what is the alternative?

I heard that apparently Swing is being developed no longer. I like Swing and use it all the time. What …

java swing awt deprecated
GridBagLayout: How to set fixed column width?

I've been trying to set fixed column width in the following code for ages...The thing is that when I …

java swing awt gridbaglayout
New Line \n is not working in JButton.setText("fnord\nfoo") ;

On a JButton, I want to list information on multiple lines. I tried \n as a new line character but …

java swing awt jbutton multiline
Widgets behaving strangely when using "setlayout(null)"

I'm doing the following call in my code: ... setLayout(null); ... I'm trying to place a button and a textfield by …

java swing layout awt null-layout-manager
java move components with mouse

I tried to make any Component draggable by simply adding mouse listeners and using the setLocation function of java.awt.…

java swing drag-and-drop awt mouselistener
How to change the default font size of Java swing components

When doing Java JFrame design, I need to edit the font size and font type manually each time drag and …

java swing fonts awt uimanager
Is there a simple way to compare BufferedImage instances?

I am working on part of a Java application that takes an image as a byte array, reads it into …

java awt
Upgrade RHEL from 7.3 to 7.4: ArrayIndexOutOfBoundsException in sun.font.CompositeStrike.getStrikeForSlot

We just upgraded a server from RHEL v7.3 to v7.4. This simple program works in RHEL v7.3 and fails in …

java awt redhat openjdk ibm-jdk