/*EVENT LISTENER*/ @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub Object source = e.getSource(); if (source == customize) { int i = cd.showCustomDialog(this, messageFont, foreground, background); if (i == CustomDialog.APPLY_OPTION) { messageFont = cd.getFont(); foreground = cd.getForeColor(); updateMessage(); } } else if (source == apply) dispose(); }