Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return of bug in color editor, moving from black to white #105

Open
jbfaden opened this issue Apr 17, 2024 · 3 comments
Open

Return of bug in color editor, moving from black to white #105

jbfaden opened this issue Apr 17, 2024 · 3 comments

Comments

@jbfaden
Copy link
Member

jbfaden commented Apr 17, 2024

For years there was a bug in the color editor, where you couldn't select the first color. This seemed to have disappeared, but Sadie saw where it is happening again.

In Autoplot:

  1. load vap+das2server:https://jupiter.physics.uiowa.edu/das/server?dataset=Juno/FGM/MagComponentsSCSE&start_time=2012-03-09T00:00:00.000Z&end_time=2012-03-10T00:00:00.000Z
  2. change color from "[54,179,179]" to "black", note that it does not accept black.
  3. change color from "[54,179,179]" to "blue", note that it does accept this.
  4. change color from "blue" to "black", note that it does accept this.
@jbfaden
Copy link
Member Author

jbfaden commented Apr 17, 2024

This has something to do with the vector in Autoplot. If I just plot a single channel, it works fine. But try:

  1. load vap+inline:ripplesVectorTimeSeries(100)
  2. change color from "[54,179,179]" to "black", note that it does not accept black.
  3. change color from "[54,179,179]" to "blue", note that it does accept this.
  4. change color from "blue" to "black", note that it does accept this.

jbfaden added a commit that referenced this issue Apr 18, 2024
bug where changing non-black color to black with GUI droplist would 
not work is fixed, now that the model is updated.
@jbfaden
Copy link
Member Author

jbfaden commented Apr 18, 2024

I think this bug never went away, and was caused because the JComboBox model thinks the original color is black, but it isn't. The problem is fixed by replacing the JComboBox model each time the value is set.

@jbfaden jbfaden closed this as completed Apr 18, 2024
@jbfaden
Copy link
Member Author

jbfaden commented Apr 26, 2024

I think I just observed this with the droplist for the plot symbol, in a multi-object property editor.

@jbfaden jbfaden reopened this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant