import java.awt.ComponentOrientation;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
public class trial2
{
public static void main(String[] args)
{
String[] option = {"Chorita M. Adlawan", "Noel B. Angeles", "Julie P. Benenoso", "Percival P.Bermas",
"Beverly Mae M. Brebante","Adela N. Cabaylo", "Carol G. Cainglet", "Oscar U. Cainglet",
String selected = (String)JOptionPane.showInputDialog(null, "MINES AND GEOSCIENCES BUREAU - REGION XI, DAVAO CITY\n" +
" LIST OF REGISTERED EMPLOYEES",
"Please Select Employee",JOptionPane.DEFAULT_OPTION, null, option , "Adlawan");
}
}
这些是我上面的代码。我的问题是,我可以更改我的 JOptionPane 的字体大小和样式以使我的列表字体更大,非常感谢任何提示。谢谢。