次のような単純なボタンを作成しようとしています-
JButton connectBtn = new JButton("Connect");
Color blue = new Color(77,176,230);
connectBtn.setBackground(blue);
しかし問題は、背景の青色が見た目ほど暗くないことです。
以下の可能性をすべて試しましたが、役に立ちません:-(
connectBtn.setBackground(Color.blue);
connectBtn.setBackground(Color.BLUE.brighter());
connectBtn.setBackground(Color.decode("#0099cc"));//i tried simply #0099cc just to get any dark background
この色を JButton の背景に設定するのを手伝ってください。ありがとう。