Why does my JButton look differently of different computers?
- by Roman
I use JButtons in my application. They need to have different colors. First I used that btn.setBackground(col);. It works on my computer and on another computer my button just gray (not red, as it's supposed to be).
Trying to solve this problem I decided to use images. I do it in the following way: tmp = new JButton(newIcon);
Again, it works fine…