我有一個JOptionPane完整的JLabels,JTextFeilds和Buttons,但我有很多東西在對話框中,它開始變得比我的屏幕更大。如何添加一個滾動條到JOptionPane.showConfirmDialog(...)
如何縮小對話框並向JOptionPane添加滾動條?
JOptionPane.showConfirmDialog(frame1, panel1, "Please Enter Character Information", JOptionPane.OK_CANCEL_OPTION);
This is what I want to add a vertical scroll bar to