if (LicenseChecker.isBasic()) {
menuItem = MenuFactory.createMenuItem("Relicense");
menuItem.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
UpgradeDialog dialog = new UpgradeDialog(frame);
dialog.setVisible(true);
boolean bought = dialog.userBought();
if (bought) {
boolean relicensed = LicenseChecker.relicense();
if (relicensed) {
ApplicationMode.resetPreference();
Application.appModeChanged();