TITLE:SystemColorの使用
#navi(../)
*SystemColorの使用 [#u69460d3]
Posted by [[terai]] at 2003-09-25

#contents

**概要 [#c694128b]
Swingコンポーネントの色をSystemColorクラスから取得します。

#twocolumn

#screenshot

#twocolumn

RIGHT:&jnlp;
RIGHT:&jar;
RIGHT:&zip;

#twocolumn

**サンプルコード [#d56e9e8d]
#code{{
Color color = SystemColor.textHighlightText;
}}

**解説 [#l578b2c0]
各プラットフォームのディスクトップデザインに対応したシステムカラーは、SystemColorクラスのstaticフィールドにまとめて定義されています。

**参考リンク [#rcd6ac16]
-[[システムカラー>http://www.asahi-net.or.jp/~dp8t-asm/java/tips/SystemColor.html]]

**コメント [#s998c29d]
- Ubuntu などでは、SystemColorはあまりうまくいかないようです。UIManagerを使った方がいいかも。 -- [[terai]] &new{2007-05-07 (月) 17:04:59};

#comment