Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Swing UI の一部の領域に色を付けようとしていますが、
.setBackground(Color.//color here
これで、より具体的でユニークな色 (茶色でさえありません) の 16 進値を使用できる方法はありますか? 試行するたびにエラーが表示されます。
試す
new Color(int r, int g, int b)
RGB用
new Color(int r, int g, int b, int a)
ARGB の場合 (a=アルファ透明度)