facebook

bug in setSelectedTextColor to white

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #286757 Reply

    fermataintl
    Member

    I just started using the Matisse part of the workbench, and found that if you set the selectedTextColor property for a JTextPane to 255,255,255 it does not generate a line of code for it. However, if I set it to 254,255,255 it does. I am attempting to emulate the selected look of the notepad application so it should be 255,255,255. My hack works, but I think the 255,255,255 should really generate that line of code.

    Thanks

    #286789 Reply

    Loyal Water
    Member

    Your saying that the code is not generated by default. Its only when you change the color that the code gets generated?

    #286790 Reply

    fermataintl
    Member

    Exactly. When I set it to 254,255,255 it generates a call. When I set it back to 255,255,255 the call goes away. This behavior would be fine if the text were white by default, but it is not.

    #286832 Reply

    Loyal Water
    Member

    I’ll make a note of this. Thank you for pointing this out.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: bug in setSelectedTextColor to white

You must be logged in to post in the forum log in