Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about graphics2d

Read more about graphics2d

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 - graphics2d

Created graphics object only showing once and disappears again after creating another one

For a current project I'm learning and using Java Swing. I want my program to create rounded rectangles that I'm currently doing with Graphics. I created a JFrame and a menu. Both are working fine. Wh...
test-img

sascher98

java

swing

graphics2d

Votes: 0

Answers: 1

Latest Answer

@camickr (in the comments section) explained the reason as to why only the last graphic is painted. One way to approach that problem is to have a separate drawing panel (i.e., SpherePane below) extend...
test-img

Chris

JPanel removing component and adding a new one offsets the new component

I am working on a solver to illustrate the Nelder Mead algorithm by generating a topographical map. The map is represented visually by a JPanel component (I know the map is not generating as cleanly a...
test-img

M_Dragon

java

swing

graphics

jpanel

graphics2d

Votes: 0

Answers: 1

Latest Answer

I was able to apply camickr's hint about a reset() method to my code, which solved my issue. The suggestion was to have all the component editing occur within the component class instead of trying to ...
test-img

M_Dragon

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