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 I ...

How to draw inner stroke with Java2D?

I just want to draw the circle which is exactly 15x15 pixels sized, and have fill and outline. I'm using Java2D. The...

Problem with gif with transparent background?

I have a problem with displaying my gif with a transparent background because when I start this program, my gif show...

How to use Java AWT setBackground?

This is some code to create a basic java window: JPanel pane = new JPanel(); gui(String title){ super(title); ...

Triangle Draw Method?

I have trouble drawing a triangle with the draw(Graphics g) method in Java. I can draw a rectangle like so: public ...

KeyPressed event in java?

I have just created a java tic-tac-toe game i would like to figure out how to run a method once the enter key is pre...

How to make a splash screen for GUI??

Hi there I'm new to GUIs in Java and was trying to make a splash screen or an image appear for 3 seconds. Then after...