Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7595327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:38:43+00:00 2026-05-30T21:38:43+00:00

I apologize about the viewing format. I haven’t been able to figure out all

  • 0

I apologize about the viewing format. I haven’t been able to figure out all the posting details quite yet.
If you Have and recommendations in regards to the formating too, please don’t hesitate to tell me.

I’m Drawing a background for a hangman game. I’m working exclusively with visuals.

Eclipse is telling I can only use int methods in the Arc method.

final int XMID = 400;
final int YMID = 300;

//small cirlce diameter
final int SMCD = 60;
final double BGCD = SMCD * 2.5;
                 // ^^^^^^^^^^ problem          

//wave base
g.fillRect(0, 480, 800, 20);

//first big circle (ARC)

g.fillArc(XMID-(SMCD/2) , 480-SMCD , BGCD, BGCD, 0, 130);
                      //  ^^^^^^^^ problem          
//first small circle
g.setColor(Color.CYAN);
g.fillOval(XMID-(SMCD/2),480-SMCD , SMCD, SMCD);
             //  ^^^^^^ problem
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:38:44+00:00Added an answer on May 30, 2026 at 9:38 pm

    You’ll need to cast BGCD to an int,
    i.e. (int)BGCD because the drawing methods don’t work with doubles or floats.

    Feel free to post the actual error message next time, it help you get a quick response

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize if this has been asked before, but I haven't quite found the
First of all, apologize because I have seen some posts about this, but I
I apologize for this seemingly relatively simple task that I can't figure out. I
first of all I want to apologize about Title. I have one winform which
I apologize if I seem unknowledgable. I have only been writing T-SQL for about
I apologize in advance as this question is quite vague. About a month ago,
I apologize if this is a newbie question, but I cannot figure out why
I apologize in advance for the confusing question wording, but I couldn't figure out
As a french developper, I apologize about my English. So, my aim is to
Apologize if this particular problem has been answered already (a search didn't turn anything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.