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.
Eclipseの[設定]->[一般]->[外観]->[色とフォント]でフォントセットを「テキストフォント」として表すFontオブジェクトを取得するにはどうすればよいですか。列の1つに固定幅のテキストが含まれているはずのテーブルビューを実装しています。
これは予想よりも簡単であることが判明しました。フォントは次のように取得されます。
font = JFaceResources.getTextFont();
ダイアログフォントとバナーフォントにも同様の方法があります。