JTextField crops text when using custom TrueType font. How to make it display text normally?
- 阅读更多 关于 JTextField crops text when using custom TrueType font. How to make it display text normally?
问题 So, the problem is definitely with the font. Question is how to make the text field display text fully. Example: import javax.swing.*; import java.awt.*; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.URL; import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; class Example extends JFrame{ public Example(){ setLayout(new BorderLayout()); Font myFont = null; try { URL link = new URL("http://rghost.ru/download/50564305