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.
表示されたGUIのフォントスタイル/レンダリングが異なり、graphics.drawString()cleartypeがアクティブ化されたデフォルトのJLabelがあるのはなぜですか?そして、どうすればそれを修正できますか?
graphics.drawString()
これを試して
Graphics2D g2d = (Graphics2D)g; Font font = new Font("Arial", Font.PLAIN, 12); g2d.setFont(font); g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2d.drawString("Hello World", 25, 100);