java - 我将如何更改此数组列表中的字体和大小?
问题描述
我想更改字体大小和字体样式。字体太小了。我已经尝试了几件事,但似乎都没有奏效。我该怎么做呢?
这是创建的窗口:
public class Questions {
public ArrayList<String> mind = new ArrayList<>();
public ArrayList<String> energy = new ArrayList<>();
public ArrayList<String> nature = new ArrayList<>();
public ArrayList<String> tactics = new ArrayList<>();
public ArrayList<String> identity = new ArrayList<>();
Questions(){
pullMind();
pullEnergy();
pullNature();
pullTactics();
pullIdentity();
}
public ArrayList<String> pullMind()
{
mind.add(" You feel more energetic after spending time with a group of people.");
mind.add(" If someone does not respond to your e-mail quickly, you start wondering if you said something wrong.");
mind.add(" If the room is full, you stay closer to the walls, avoiding the center.");
mind.add(" You feel very anxious in a stressful situation.");
mind.add(" You do not usually initiate conversations.");
mind.add(" You usually find it difficult to relax when talking in front of many people.");
mind.add(" An interesting book or a video game is often better than a social event.");
mind.add(" You find it difficult to introduce yourself to other people.");
mind.add(" You do not mind being at the center of attention.");
mind.add(" You enjoy going to social events that involve dress-up or role-play activities.");
mind.add(" It does not take much time to start getting involved in social activities at your new workplace.");
mind.add(" You are a relatively reserved and quiet person.");
return mind;
}
public int getMindSize()
{
return (mind.size());
}
解决方案
推荐阅读
- impersonation - 具有 Trino 模拟和 LDAP 的超集
- java - 使用 Apache Beam 从 SFTP 位置读取文件
- javascript - 如何在 map() 循环中循环?
- mongodb - 如何更新对象数组的对象值?
- c++ - reinterpret_cast 和明确的对齐要求
- r - 如何在R中按名称列出箱线图?
- c# - 如何捕获和诊断 Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException?
- vue.js - 使用 nuxt-link 导航到不同页面上的锚点/哈希不起作用
- mysql - 创建并调用 MYSQL 函数以查找斐波那契数直到 n 个数
- docker - 使用docker搭建集群时无法连接数据节点