- String size = fontSize.getText().substring(fontSize.getText().indexOf("-") +\r
- 1);\r
-\r
- Object selection = JOptionPane.showInternalInputDialog(Desktop.desktop,\r
- "Select font size", "Font size", JOptionPane.QUESTION_MESSAGE,\r
- null,\r
- new String[]\r
- {\r
- "1", "2", "4", "6", "8", "10", "12", "14", "16", "18", "20"\r
- }, "Font Size - " + size);\r
-\r
- if (selection != null)\r
- {\r
- fontSize.setText("Font Size - " + selection);\r