相关疑难解决方法(0)

如何让JComboBox中的内容显示在中心?

目前我有这个JComboBox,我怎样才能将内容集中在里面?

String[] strs = new String[]{"15158133110", "15158133124", "15158133458"};
JComboBox com = new JComboBox(strs);
Run Code Online (Sandbox Code Playgroud)

java swing center jcombobox cellrenderer

9
推荐指数
1
解决办法
3457
查看次数

标签 统计

cellrenderer ×1

center ×1

java ×1

jcombobox ×1

swing ×1