Package javax.swing

Examples of javax.swing.JPanel.addMouseListener()


    JScrollPane scrollTablePane = new JScrollPane(dataList);
    scrollTablePane.addMouseListener(l4);
    JPanel listBorder = new JPanel();
    listBorder.setLayout(new GridLayout(1, 1));
    listBorder.addMouseListener(l4);
    listBorder.setBorder(new javax.swing.border.TitledBorder(
        Translator.getTranslation("Accounts")));
    listBorder.add(scrollTablePane);
    center.add(listBorder);
View Full Code Here


    preList.addMouseListener(l3);
    preList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    JScrollPane scrollTablePane2 = new JScrollPane(preList);
    scrollTablePane2.addMouseListener(l3);
    JPanel listBorder2 = new JPanel();
    listBorder2.addMouseListener(l3);
    listBorder2.setLayout(new GridLayout(1, 1));
    listBorder2.setBorder(new javax.swing.border.TitledBorder(
        Translator.getTranslation("Predefined groups")));
    listBorder2.add(scrollTablePane2);
    center.add(listBorder2);
View Full Code Here


        //{{{ +mouseReleased(MouseEvent) : void
        public void mouseReleased(MouseEvent e) { }//}}}
      };
    typePanel.addMouseListener(l1);
    fileTypeButton[0] = new HelpedRadioButton(Translator.getTranslation("Standard"), "standard", "exportoptions", view);
    group.add(fileTypeButton[0]);
    typePanel.add(fileTypeButton[0]);
    fileTypeButton[1] = new HelpedRadioButton(Translator.getTranslation("Microsoft Excel"), "excel", "exportoptions", view);
    group.add(fileTypeButton[1]);
View Full Code Here


        //{{{ +mouseReleased(MouseEvent) : void
        public void mouseReleased(MouseEvent e) { }//}}}
      };
    delimitPanel.addMouseListener(l2);
    delimitPanel.setBorder(new javax.swing.border.TitledBorder(Translator.getTranslation("Delimiter")));
    delimitPanel.setLayout(new GridLayout(2, 1));
    delimiterButton[0] = new HelpedRadioButton(",  " + Translator.getTranslation("Comma"), "comma", "exportoptions", view);
    groupDel.add(delimiterButton[0]);
    delimitPanel.add(delimiterButton[0]);
View Full Code Here

                 */
                DragPopup dragPopup = new DragPopup(p, panel, closeLab.getHeight());
                if (cpeer != null) {
                        cpeer.addMouseListener(dragPopup);
                }
                panel.addMouseListener(dragPopup);
                panel.addMouseMotionListener(dragPopup);
                closeLab.setOnclick(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                                p.p.hide();
                        }
View Full Code Here

    cp.setLayout( new GridLayout( 3, 3 ));
    for( int i = 0; i < 4; i++ ) cp.add( new JLabel() );
    cp.add( p );
    for( int i = 0; i < 4; i++ ) cp.add( new JLabel() );

    p.addMouseListener( new MouseAdapter() {
      public void mouseEntered( MouseEvent e ) {
        tabletWrapper.addTabletListener( listener );
      }

      public void mouseExited( MouseEvent e ) {
View Full Code Here

        public void mousePressed(MouseEvent e) {
          lastPoint = e.getPoint();
          SwingUtilities.convertPointToScreen(lastPoint, panel);
        }
      };
      panel.addMouseListener(adapter);
      panel.addMouseMotionListener(adapter);
      // Don't add tipListener to the panel or SizeGrip
    }
    else {
      panel.setOpaque(false);
View Full Code Here

      label.setBackground(bg);
      label.setForeground(fg);
      label.setHorizontalAlignment(SwingConstants.TRAILING);
      label.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
      panel.add(label);
      panel.addMouseListener(tipListener);
    }

    // Replace the previous SOUTH Component with the new one.
    Container cp = getContentPane();
    if (cp.getComponentCount()==2) { // Skip first time through
View Full Code Here

          else //hasImageMap
          {
            link = new JPanel();
            if (hasHyperlink)
            {
              link.addMouseListener(mouseListener);
            }
          }

          if (hasHyperlink)
          {
View Full Code Here

                    previousStop = myLabel.getText();
                }
            }
            logger.debug("I'm drawing route schedule " + rs.toString());
            JPanel drawPanel = new DrawingPanel(xPos, direction, rs.hasDelay() );
            drawPanel.addMouseListener(new BusMouseListener(theInterface.getDisplaySchedule(theRouteList.getSelectedValue().toString().split(":")[0], i), theInterface));
            vehiclePanel.add(drawPanel);
            allVehicleDisplayPanel.add(vehiclePanel, BorderLayout.CENTER);
            allVehicleDisplayPanel.add(makeVehicleInfoPanel(), BorderLayout.SOUTH);
            /*JPanel busPanel = new JPanel();
            Random randNumGen = new Random();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.