private void initUI(String message, String prompt, boolean initialState,
int type) {
this.panel = new JPanel();
JOptionPane optionPane = new JOptionPane(message, type, 0, null,
new Object[0], null)
{
public int getMaxCharactersPerLineCount() {
return 100;
}
};
optionPane.setUI(new javax.swing.plaf.basic.BasicOptionPaneUI() {
public Dimension getMinimumOptionPaneSize() {
if (minimumSize == null) {
return new Dimension(MinimumWidth, 50);
}
return new Dimension(minimumSize.width, 50);
}
});
optionPane.setWantsInput(false);
JPanel checkPanel = new JPanel();
checkbox = new JCheckBox(prompt, initialState);
checkPanel.setLayout(new BorderLayout());
checkPanel.setBorder(new EmptyBorder(0, 20, 0, 0));