860 |
addIcon(messageArea); |
addIcon(messageArea); |
861 |
|
|
862 |
JPanel rightSide = new JPanel(); |
JPanel rightSide = new JPanel(); |
863 |
rightSide.setBorder(BorderFactory.createEmptyBorder(0, 11, 17, 0)); |
rightSide.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); |
864 |
rightSide.setLayout(new GridBagLayout()); |
rightSide.setLayout(new GridBagLayout()); |
865 |
GridBagConstraints con = createConstraints(); |
GridBagConstraints con = createConstraints(); |
866 |
|
|
867 |
addMessageComponents(rightSide, con, getMessage(), |
addMessageComponents(rightSide, con, getMessage(), |
868 |
getMaxCharactersPerLineCount(), false); |
getMaxCharactersPerLineCount(), false); |
869 |
|
|
886 |
} |
} |
887 |
} |
} |
888 |
|
|
889 |
messageArea.add(rightSide, BorderLayout.EAST); |
messageArea.add(rightSide, BorderLayout.CENTER); |
890 |
|
|
891 |
return messageArea; |
return messageArea; |
892 |
} |
} |
941 |
{ |
{ |
942 |
case JOptionPane.YES_NO_OPTION: |
case JOptionPane.YES_NO_OPTION: |
943 |
return new Object[] { YES_STRING, NO_STRING }; |
return new Object[] { YES_STRING, NO_STRING }; |
944 |
|
case JOptionPane.DEFAULT_OPTION: |
945 |
case JOptionPane.YES_NO_CANCEL_OPTION: |
case JOptionPane.YES_NO_CANCEL_OPTION: |
946 |
return new Object[] { YES_STRING, NO_STRING, CANCEL_STRING }; |
return new Object[] { YES_STRING, NO_STRING, CANCEL_STRING }; |
947 |
case JOptionPane.OK_CANCEL_OPTION: |
case JOptionPane.OK_CANCEL_OPTION: |
|
case JOptionPane.DEFAULT_OPTION: |
|
948 |
return new Object[] { OK_STRING, CANCEL_STRING }; |
return new Object[] { OK_STRING, CANCEL_STRING }; |
949 |
} |
} |
950 |
return null; |
return null; |