Top "Awt" questions

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

JPanel.setSize() not working

Check out this code friends don't know why i am not able to set the size of JPanel... . import java.…

java swing awt null-layout-manager
Porting AWT graphics code to Android

We would like to use some of our existing Java AWT graphics code on the Android platform. As far as …

java android graphics awt porting
Adding fonts to Swing application and include in package

I need to use custom fonts (ttf) in my Java Swing application. How do I add them to my package …

java swing fonts awt embedded-resource
How to create a Graphics2D instance?

What's the easiest way in Java SE 7 to obtain an instance just to plot a few points for debugging? Desktop …

java awt graphics2d
Java - FontMetrics without Graphics

How to get FontMetrics without use Graphics ? I want to get FontMetrics in constructor, now I do this way: BufferedImage …

java awt font-size fontmetrics
Get screen coordinates of a node in javaFX 8

I am developing a JavaFX application on Windows 8.1 64bit with 4GB of RAM with JDK version 8u45 64bit. I want …

java javafx awt javafx-8 awtrobot
Cannot load font in JRE 8

I cannot load a font from an S3 Inputstream in JRE 8. I do not have issue if a system is …

java fonts awt java-8
java.awt.image.DataBufferByte cannot be cast to java.awt.image.DataBufferInt

I have some errors atm while im coding with JAVA, I have been trying to fix this for along time, …

java image swing awt java-canvas
java.awt.image.BufferedImage 24-bit RGB to 8-bit Grayscale conversion using custom ColorSpace

I want to do a simple color to grayscale conversion using java.awt.image.BufferedImage. I'm a beginner in the …

java image image-processing awt jai
Need FileDialog with a file type filter in Java

I have a JDialog with a button/textfield for the user to select a file. Here's the code: FileDialog chooser = …

java swing awt filedialog