<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    Thank you for your answer and explanation.<br>
    <br>
    As I understand the problem is not in using the type of the
    consructor, but in the initial color (from palette or not):<br>
    <br>
            ColorPicker picker = new ColorPicker();<br>
            picker.setValue(Color.YELLOW);//this works OK, the color
    from palette<br>
            picker.setValue(Color.CORAL);//this doesn't work, the color
    not from palette<br>
    <br>
    Best regards, Pavel<br>
    <br>
    <div class="moz-cite-prefix">On 5/9/24 6:18 PM, Andy Goryachev
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:BL3PR10MB61855CE27D93E54B7B623225E5E62@BL3PR10MB6185.namprd10.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}@font-face
        {font-family:"Iosevka Fixed SS16";
        panose-1:2 0 5 9 3 0 0 0 0 4;}@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Aptos",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Iosevka Fixed SS16";
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16"">Perhaps I should have left a clearer note.  The
            bug is still there, no one worked on it yet.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16"">Changing to the default constructor at least
            works as expected - the large white square (selected color)
            appears over the right spot.  In the original example, the
            Color.CORAL is apparently not a part of the palette, so
            instead the white (incorrect) square appears at the wrong
            place.  Change the constructor argument to a color which is
            present in the palette and it would work as expected.  This
            is just a workaround, the bug is still there.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16"">-andy<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;font-family:"Iosevka Fixed
            SS16""><o:p> </o:p></span></p>
        <div id="mail-editor-reference-message-container">
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal" style="margin-bottom:12.0pt"><b><span
                    style="font-size:12.0pt;color:black">From:
                  </span></b><span style="font-size:12.0pt;color:black">openjfx-dev
                  <a class="moz-txt-link-rfc2396E" href="mailto:openjfx-dev-retn@openjdk.org"><openjfx-dev-retn@openjdk.org></a> on behalf of
                  PavelTurk <a class="moz-txt-link-rfc2396E" href="mailto:pavelturk2000@gmail.com"><pavelturk2000@gmail.com></a><br>
                  <b>Date: </b>Thursday, May 9, 2024 at 07:56<br>
                  <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:openjfx-dev@openjdk.org">openjfx-dev@openjdk.org</a>
                  <a class="moz-txt-link-rfc2396E" href="mailto:openjfx-dev@openjdk.org"><openjfx-dev@openjdk.org></a><br>
                  <b>Subject: </b>There is no workaround for
                  JDK-8324327<o:p></o:p></span></p>
            </div>
            <div>
              <p class="MsoNormal"><span style="font-size:11.0pt">Hello
                  all.<br>
                  <br>
                  This is about <a
                    href="https://bugs.openjdk.org/browse/JDK-8324327"
                    moz-do-not-send="true">https://bugs.openjdk.org/browse/JDK-8324327</a>
                  .<br>
                  <br>
                  Andy Goryachev wrote in comment "Change to the default
                  constructor and the issue disappears".<br>
                  I don't see that using default constructor solves the
                  problem. I tried the following code :<br>
                  <br>
                  public class JavaFxTest7 extends Application {<br>
                  <br>
                       public static void main(String[] args) {<br>
                           launch(args);<br>
                       }<br>
                  <br>
                       @Override<br>
                       public void start(Stage primaryStage) {<br>
                           VBox root = new VBox();<br>
                           ColorPicker picker = new ColorPicker();<br>
                           root.getChildren().addAll(picker);<br>
                  <br>
                           var scene = new Scene(root, 400, 300);<br>
                           primaryStage.setScene(scene);<br>
                           primaryStage.show();<br>
                       }<br>
                  }<br>
                  <br>
                  and I have the same bug.<br>
                  <br>
                  JavaFX: 23-ea+3<br>
                  Java: 21.0.2<br>
                  OS: Ubuntu 20.04.3 LTS<br>
                  <br>
                  So, ColorPicker is always broken.<br>
                  <br>
                  Best regards, Pavel<o:p></o:p></span></p>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>