@Override public void removeUpdate(DocumentEvent e) { try { settings.username = e.getDocument().getText(0, e.getDocument().getLength()); } catch (BadLocationException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } }
@Override public void stateChanged(ChangeEvent arg0) { if (arg0.getSource().equals(settingsPanel.getDimensionsPanel().getRowSpinner().getSpinner())) settings.rowCount = settingsPanel.getDimensionsPanel().getRowSpinner().getValue(); else settings.colCount = settingsPanel.getDimensionsPanel().getColSpinner().getValue(); }
@Override public void actionPerformed(ActionEvent e) { TimePeriod period = actionCommandsToTimePeriods.get(e.getActionCommand()); settings.period = period; }
@Override public void itemStateChanged(ItemEvent arg0) { if (arg0.getStateChange() == ItemEvent.SELECTED) settings.drawText = true; else settings.drawText = false; }