# 1 楼答案 如果您想在窗口中显示一些文本,可以,在JFrame中添加一个JLabel就可以了 只需创建所需字体的实例,并使用^{}将其分配给JLabel 下面是一个代码示例(取自here): Font font = new Font("Jokerman", Font.PLAIN, 35); JLabel textLabel = new JLabel(textMessage); textLabel.setFont(font);
# 1 楼答案
如果您想在窗口中显示一些文本,可以,在
JFrame
中添加一个JLabel
就可以了只需创建所需字体的实例,并使用^{} 将其分配给
JLabel
下面是一个代码示例(取自here):