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 Preferences -> General -> Appearance -> Colors and Fonts 中获取将字体集表示为“文本字体”的 Font 对象?我正在实现一个表格视图,其中一列应该包含固定宽度的文本。
事实证明这比预期的要容易。字体是这样获得的:
font = JFaceResources.getTextFont();
对话框和横幅字体也有类似的方法。