Don't try to set the new default font if the user didn't pick one.

by mrs, 10 Oct, 2009 11:19 PM
1015 1017  
159159     JFontChooser jfc = new JFontChooser();
160160     jfc.setSelectedFont(myTableCellRenderer.getDefaultFont());
161161     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     }
164166   }
165167 
166168   private void DoShowLastError(Component src, AuctionEntry passedAE) {