Don't try to set the new default font if the user didn't pick one.
| 1015 | 1017 | |
|---|---|---|
| 159 | 159 | JFontChooser jfc = new JFontChooser(); |
| 160 | 160 | jfc.setSelectedFont(myTableCellRenderer.getDefaultFont()); |
| 161 | 161 | Font chosen = jfc.showFontDialog(null, "Please choose the default font for the auction table"); |
| 162 | myTableCellRenderer.setDefaultFont(chosen); | |
| 163 | MQFactory.getConcrete("redraw").enqueue("#font"); | |
| 162 | if(chosen != null) { | |
| 163 | myTableCellRenderer.setDefaultFont(chosen); | |
| 164 | MQFactory.getConcrete("redraw").enqueue("#font"); | |
| 165 | } | |
| 164 | 166 | } |
| 165 | 167 | |
| 166 | 168 | private void DoShowLastError(Component src, AuctionEntry passedAE) { |
