Package javax.swing.event

Examples of javax.swing.event.ListSelectionListener


        });

        importTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

        importTable.getSelectionModel().addListSelectionListener(
                new ListSelectionListener() {

                    public void valueChanged(ListSelectionEvent e) {
                        if (e.getValueIsAdjusting()) {
                            return;
                        }
View Full Code Here


        placemarksTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        userScrollPane.setViewportView(placemarksTable);

        // Listen for changes to the select on the user table and enable/
        // disable the Edit/Remove buttons as a result.
        ListSelectionListener userListener = new ListSelectionListener() {

            public void valueChanged(ListSelectionEvent e) {
                boolean isRowSelected = placemarksTable.getSelectedRow() != -1;
                editButton.setEnabled(isRowSelected);
                removeButton.setEnabled(isRowSelected);
View Full Code Here

            public void tableChanged(javax.swing.event.TableModelEvent e)
            {
                textArea1.append("TableModelEvent at " + e.getFirstRow() + ", " + e.getColumn() + "\n");
            }
        });
        table.getSelectionModel().addListSelectionListener(new ListSelectionListener()
        {

            public void valueChanged(ListSelectionEvent e)
            {
                textArea1.setText(e.toString());
View Full Code Here

            }
        });

        // Listen for when the selection of the list of avatar changes, so we
        // update the state of buttons
        avatarList.addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                if (!e.getValueIsAdjusting()) {
                    updateButtonEnabled();
                }
            }
View Full Code Here

        userXAppsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        userScrollPane.setViewportView(userXAppsTable);

        // Listen for changes to the select on the user table and enable/
        // disable the Remove button as a result.
        ListSelectionListener userListener = new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                userRemoveButton.setEnabled(
                        userXAppsTable.getSelectedRow() != -1);
            }
        };
View Full Code Here

    historyList = new JList();
    historyList.setMaximumSize(new Dimension(80, 100));
    JScrollPane scrollPane = new JScrollPane(historyList);
    scrollPane.setPreferredSize(start.getSize());
    start.add(scrollPane);
    historyList.addListSelectionListener(new ListSelectionListener()
    {
      @Override
      public void valueChanged(ListSelectionEvent e)
      {
        displayBuild((EcBuildOrder) historyList.getSelectedValue());
View Full Code Here

                Resources.getString(LABEL_BEHAVIOR),
                Resources.getString(LABEL_USER_STYLESHEET),
                };

        final JList list = new JList(configList);
        list.addListSelectionListener(new ListSelectionListener(){
                public void valueChanged(ListSelectionEvent evt){
                    if(!evt.getValueIsAdjusting()){
                        configPanelSelector.select(list.getSelectedValue().toString());
                    }
                }
View Full Code Here

    downButton.setToolTipText("Move selected rule down");
    upButton.setEnabled(false);
    downButton.setEnabled(false);

    table.getSelectionModel().addListSelectionListener(
      new ListSelectionListener() {
        public void valueChanged(ListSelectionEvent e) {
          if (!e.getValueIsAdjusting()) {
            int index = table.getSelectionModel().getMaxSelectionIndex();

            if (index < 0) {
View Full Code Here

          }
        }
      });

    table.getSelectionModel().addListSelectionListener(
      new ListSelectionListener() {
        public void valueChanged(ListSelectionEvent e) {
          if (!e.getValueIsAdjusting()) {
            int index = table.getSelectionModel().getMaxSelectionIndex();

            if (index < 0) {
View Full Code Here

      });

    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    table.getSelectionModel().addListSelectionListener(
      new ListSelectionListener() {
        public void valueChanged(ListSelectionEvent evt) {
          if (
            ((evt.getFirstIndex() == evt.getLastIndex())
              && (evt.getFirstIndex() > 0)) || (evt.getValueIsAdjusting())) {
            return;
View Full Code Here

TOP

Related Classes of javax.swing.event.ListSelectionListener

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.