Package org.jdraw.swing

Examples of org.jdraw.swing.TaggedMenuItem


  private void refreshRecentFiles() {
    log.fine("refreshRecentFiles()");
    menuRecentFiles.removeAll();
    if (recentFiles.getRecentFiles().size() > 0) {
      for (File f : recentFiles.getRecentFiles()) {
        TaggedMenuItem mi = new TaggedMenuItem();
        mi.setTag(f);
        mi.setText(f.getName());
        mi.setToolTipText(f.getAbsolutePath());
        mi.addActionListener(menuActionListener);
        menuRecentFiles.add(mi);
      }
    }
  }
View Full Code Here


          rb.getString("menu.help.online"))) {
        launchBrowser();
      }

      else if (TaggedMenuItem.class.isInstance(event.getSource())) {
        TaggedMenuItem mi = (TaggedMenuItem) event.getSource();
        openFile(((File) mi.getTag()).getAbsolutePath());
      }
    }
View Full Code Here

TOP

Related Classes of org.jdraw.swing.TaggedMenuItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.