Is it possible to turn off ANTIALIAS in JLabel
? Something like this (but it is not working..):
@Override
public void paintComponent(Graphics g) {
Graphics2D graphics2d = (Graphics2D) g;
graphics2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
super.paintComponent(g);
}
}
Or should I create custom Label where I can easily set this ANTIALIAS value? The goal is to make the text not fuzzy.