フリーのルック&フィールを試してみる(JTattoo)
swingにはじめからインストールされているルック&フィール以外を試してみます。
とりあえず目についたものを試します。
- JTattoo
ここからJTattoo.jarを落とします。
require './JTattoo.jar' import javax.swing.UIManager UIManager.look_and_feel = "com.jtattoo.plaf.noire.NoireLookAndFeel" # 以下、省略
上記以外にもJTattooにはいろいろ含まれています。
UIManager.look_and_feel = "com.jtattoo.plaf.acryl.AcrylLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.aero.AeroLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.aluminium.AluminiumLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.bernstein.BernsteinLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.fast.FastLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.graphite.GraphiteLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.hifi.HiFiLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.luna.LunaLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.mcwin.McWinLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.mint.MintLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.smart.SmartLookAndFeel"
UIManager.look_and_feel = "com.jtattoo.plaf.texture.TextureLookAndFeel"
感想
swingは見た目を簡単に変えることができるのでいいですね。
調べてみると、フリーのswingで使えるルック&フィールは他にもいろいろあるみたいです。