Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about java-2d

Read more about java-2d

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - java-2d

How to create a new Shape out of two Ovals in AWT?

For my program, I want to have two ovals overlap and then create a new shape out of the overlapped area. So that I can later combine the resulting shape again with another shape. In the end, I want to...
test-img

Tommygun mit vier m

java

graphics

awt

shapes

java-2d

Votes: 0

Answers: 1

Latest Answer

There is a class called Area (I believe it is in java.awt.geom) that would be perfect for this Shape oval1 = ..., oval2 = ...; Area a = new Area(oval1).subtract(oval2); You can color it how you want ...
test-img

ControlAltDel

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved