Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By benji2505

Thread: FXML coordinate system

  1. #1
    sunrise is offline Member
    Join Date
    Apr 2017
    Posts
    1
    Rep Power
    0

    Default FXML coordinate system

    Hello,
    I have to write a program that shows a circle in a window, the circle must touch both x and y axis. I try with different coordinates maybe gc.strokeOvall(1,5,d,d) gives the closest result to what I have to do. But I really don't get it. Why?
    How to determine x and y to the circle, my canvas is 450/550 if that matters.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    19,970
    Rep Power
    32

    Default Re: FXML coordinate system

    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    5

    Default Re: FXML coordinate system

    I have a feeling that you are mixing 2 APIs, e.g. Java2D and JavaFX.

    As for the task itself there should be more definitions. There is an infinite number of solutions for circles that touch the x and the y axis.
    sunrise likes this.

Similar Threads

  1. Java FXML, JavaFX, Swing?
    By ctullar in forum JavaFX
    Replies: 5
    Last Post: 07-27-2015, 04:57 PM
  2. Replies: 1
    Last Post: 01-15-2011, 10:27 AM
  3. Java Coordinate System
    By swalker326 in forum Java Applets
    Replies: 8
    Last Post: 12-05-2010, 07:39 PM
  4. Cartesian coordinate system (X > 0, Y>0)
    By cselic in forum Java 2D
    Replies: 0
    Last Post: 07-02-2010, 01:54 PM
  5. Replies: 3
    Last Post: 02-07-2010, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •