User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a Java swing programmer. I need to know if there can be an icon that shows the inversion of its background. The question might be ridiculous, but I don't want to shut myself up. Just want to know if it is something feasible or do I need to have separate icons for each background and have it invert accordingly?

share|improve this question

closed as off-topic by Matt Obee, Roger Attrill, Bart Gijssens, JonW Feb 28 '14 at 14:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about Implementation are off-topic because this site is for User Experience design questions, not questions around how to implement these designs. Therefore, questions around the use of programs like Photoshop or languages such as CSS or JavaScript are off topic." – Matt Obee, Roger Attrill, Bart Gijssens, JonW
If this question can be reworded to fit the rules in the help center, please edit the question.

Question is a little confusing, are you asking whether you can you a toggle for inverting the colours or whether you should use two buttons instead? – MeeMMeeM Feb 28 '14 at 11:59
Hi Kannan. This is not really a UX question, but for what it's worth, inverting the background is not something that is a feature of the icon itself, but the way the icon is painted onto the background (eg by XORing background with the icon bitmap. So you can do it with two icons, or (my java is a little rusty) you can override the component paint method to XOR the icon when it's drawn? – Roger Attrill Feb 28 '14 at 12:05
could you clarify your question, please? – PatomaS Feb 28 '14 at 13:12
What would the meaning be between the original and swapped? Consider instead decreasing the alpha (for disabled), increasing saturation (for hover), darkening (for click or tap), or simply invisible (if you don't want the user to know it's there because they might not have the proper privileges). You will need to swap icons programmatically for each state. – Mickael Caruso Feb 28 '14 at 20:22

Browse other questions tagged or ask your own question.