Example usage for javax.swing.event TreeSelectionListener interface-usage

List of usage examples for javax.swing.event TreeSelectionListener interface-usage

Introduction

In this page you can find the example usage for javax.swing.event TreeSelectionListener interface-usage.

Usage

From source file Main.java

public class Main extends JFrame implements TreeSelectionListener {

    public static void main(String[] args) {
        new Main();
    }

From source file UsingTreeSelectionListener.java

class SelectionListener implements TreeSelectionListener {

    public void valueChanged(TreeSelectionEvent se) {
        JTree tree = (JTree) se.getSource();
        DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
        String selectedNodeName = selectedNode.toString();

From source file org.feistymeow.dragdrop.dragdrop_tree_test.java

/**
 * A demo of the DragonDropHandler being used with a JTree.
 * 
 * @author Chris Koeritz
 * @copyright Copyright (c) 2012-$now By University of Virginia
 * @license This file is free software; you can modify and redistribute it under the terms of the

From source file ser321.media.MediaJavaClient.java

/**
 * Copyright (c) 2015 Tim Lindquist,
 * Software Engineering,
 * Arizona State University at the Polytechnic campus
 * <p/>
 * This program is free software; you can redistribute it and/or

From source file TreeUtil.java

public class TreeUtil implements ActionListener, TreeSelectionListener {
    protected DefaultMutableTreeNode itsRootNode = null;
    protected JMenuItem itsRootMenu = null;

    // Should really do this with an object encompassing the nodes and data
    // with only on map. But this is easier...

From source file com.ssn.listener.SSNFacebookAlbumSelectionListener.java

/**
 *
 * @author asingh8
 */
public class SSNFacebookAlbumSelectionListener implements TreeSelectionListener {
    private SSNTreeHelper treeHelper;

From source file com.ssn.listener.SSNInstagramSelectionListener.java

/**
 *
 * @author asingh8
 */
public class SSNInstagramSelectionListener implements TreeSelectionListener {
    private SSNTreeHelper treeHelper;

From source file org.photovault.swingui.volumetree.VolumeTreeController.java

/**
 * Controller for the volume tree pane in main user interface.
 * @author Harri Kaimio
 * @since 0.6.0
 */
public class VolumeTreeController extends PersistenceController

From source file it.unibas.spicygui.vista.listener.ConstraintColoringTreeSelectionListener.java

public class ConstraintColoringTreeSelectionListener implements TreeSelectionListener {

    private static Log logger = LogFactory.getLog(ConstraintColoringTreeSelectionListener.class);
    private Modello modello;
    private String connectionConstraintConst;
    private String nodeConnectionAnnotation;

From source file cz.lidinsky.editor.TableCellEditor.java

/**
 *  Choose and return appropriate edit component, for property table.
 *  The decision is based mainly on the datatype of the edited value.
 *  But may depend even on the class to which the property belongs to.
 */
public class TableCellEditor extends AbstractCellEditor implements javax.swing.table.TableCellEditor,