目前我有这个JComboBox,我怎样才能让里面的内容居中?String[]strs=newString[]{"15158133110","15158133124","15158133458"};JComboBoxcom=newJComboBox(strs); 最佳答案 您需要创建一个渲染器然后将其应用到JComboBoxDefaultListCellRendererdlcr=newDefaultListCellRenderer();dlcr.setHorizontalAlignment(DefaultListCellRendere