Metal (Java Look and Feel)

メタル(Java ルック&フィール) / 1998– / Style / Platform Screen Languages

Sun's default look and feel for Swing, built so that a program looks the same on every operating system. Metal was Sun's internal project name for it and stuck as the public one. Blue violet fills, thin straight borders, and a flat refusal to imitate the host platform are its signature.

Internal window title bars laid as a deep blue violet band over a pale blue violet field / A fine texture of dots and diagonal ticks stamped into title bars and dividers / Rectangular buttons with no corner radius, ringed by a one pixel deep blue violet line / The host system draws the outer window frame while everything inside it follows a different visual language

DavidL《Swing の Metal ルック&フィール》2020年 — Wikimedia Commons / CC BY-SA 4.0Apache Software Foundation《Apache JMeter 2.3.3 の画面》2009年 — Wikimedia Commons / CC BY-SA 3.0Kateregga1《JOSM の設定画面》2018年 — Wikimedia Commons / CC BY-SA 4.0

Dictionary entry

Best used for
Flattening the differences between operating systems so an internally distributed desktop tool reads as one picture everywhere · Recreating the screen of a turn of the century business application for a document or an exhibit
Type
Run a single sans throughout and separate levels with weight and color only. Keep to two type sizes and leave headings undecorated.
Composition
Fix four bands inside the window: menu, tool strip, work area, status strip. Leave the host window frame alone and paint only what is inside it.
Material
Combine three steps of blue violet, a pale field, a deep band, a darker border, with three steps of gray. Draw every boundary as a one pixel line and never blur it.
Caution
Since Java SE 5 the default theme has been Ocean, which drains most of the blue violet away, so building on the assumption that Metal means blue violet will not match what actually runs.
Further study
Oracle の Java チュートリアルに並ぶ Metal と Ocean の比較図 / DefaultMetalTheme と OceanTheme の色指定の違い / SwingSet2 デモの画面で部品ごとの描かれ方を見る

Related entries

Cite this entry

The dictionary is meant to be linked to. Take whichever form fits where you are writing.

Link
https://indexstyle.org/styles/java-metal
Markdown
[Metal (Java Look and Feel) — IndexStyle](https://indexstyle.org/styles/java-metal)
HTML
<a href="https://indexstyle.org/styles/java-metal">Metal (Java Look and Feel) — IndexStyle</a>

Back to index position