Top "Java-2d" questions

Java 2D is an API for drawing two-dimensional graphics using the Java programming language.

How to render a 2d image in Java

I have a quick question about Java. I'm sorry if this question is really basic, but I'm a beginner Java …

java image swing java-2d
how can you make a progress bar without using JProgressBar?

i am looking at putting a progress bar into a game i am making with a count down from a …

java swing timer progress-bar java-2d
Align text with Java Graphics 2d

Can anyone tell me how to alight text right in Java 2d? Here's the code, it draws a column of …

java java-2d
Component painting outside custom border

In this custom border class, I define a RoundRectangle2D shape. This object is used to paint the border. Unfortunately, …

java swing border java-2d clip
How to resize text in java

I have seen that in photoshop text can be easily resized just by dragging them. How can we do the …

java image swing text java-2d
Java GUI Rotation and Translation of Rectangle

I am trying to draw a rectangle in JPanel that would translate and then rotate itself to mimic the movement …

java swing rotation awt java-2d
Increasing screen capture speed when using Java and awt.Robot

Edit: If anyone also has any other recommendations for increasing performance of screen capture please feel free to share as …

java java-2d javax.imageio awtrobot
Java: Friendlier way to get an instance of FontMetrics

Is there a friendlier way to get an instance of FontMetrics than FontMetrics fm = Graphics.getFontMetrics(Font); I hate this …

java java-2d fontmetrics
Drawing smoke effects with java

Is there any way to draw a smoke effect in java (by using Java2D API). I want to achieve …

java java-2d
What are some faster alternatives to Java2d?

I'm looking to do some physics simulations and I need fast rendering in Java. I've run into performance issues with …

java performance rendering jogl java-2d