String[] option = {"Adlawan", "Angeles", "Arreza", "Benenoso", "Bermas",
"Brebante", "Cabaylo", "C. Cainglet", "O. Cainglet",
"Calunsag", "Cameros", "Casanaan", "Catulong", "Chicote",
"Dela Paz", "Ea", "Echavez"};
int choose = JOptionPane.showOptionDialog(null, "WHICH EMPLOYEE'S DATA WOULD YOU
LIKE TO RESET?", "Click to Choose Type of Leave Credits",
JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE,
null, option, option[16]);
它运行完美,我唯一的问题是JOptionPane
(带有要选择的名称)不适合屏幕,我如何将名称添加到框架或面板中并将 aJScroll
放入其中以使其适合屏幕。