Package vg.userInterface.swingComponents

Examples of vg.userInterface.swingComponents.SimpleTabWithCloseButton


    if(renamingTitle != null) {
      this.tabs.setTitleAt(renamingId, renamingTitle);
    }
    this.tabs.addTab(title, graphRepresentation);
    // add close button
    this.tabs.setTabComponentAt(DesktopPanel.this.tabs.getTabCount() - 1, new SimpleTabWithCloseButton(tabs, new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        synchronized (theMutexObject) {
          int index = tabs.indexOfTabComponent((SimpleTabWithCloseButton)e.getSource());
          if(index >= 0) {
            for(Integer buf : comTabIdAndTab.keySet()) {
View Full Code Here


    this.comTabIdAndShortFileName.put(tabId, shortFileName);
    this.comTabIdAndFullFileName.put(tabId, fullFileName)
    this.comTabIdAndTab.put(tabId, this.tabs.getTabCount() - 1);
    this.comTabIdAndTextComponent.put(tabId, textComponent);
    // add close button
    this.tabs.setTabComponentAt(this.tabs.getTabCount() - 1, new SimpleTabWithCloseButton(tabs, new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        int tabIndex = Desktop.this.tabs.indexOfTabComponent((SimpleTabWithCloseButton)e.getSource());
        localCloseTab(tabIndex);
      }
    }));
View Full Code Here

TOP

Related Classes of vg.userInterface.swingComponents.SimpleTabWithCloseButton

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.