Package javax.swing

Examples of javax.swing.JTabbedPane.addMouseListener()


        JTabbedPane pane = new JTabbedPane();
        pane.setTabPlacement(tabPlacement);
        UIManager.put(LookAndFeelSettings.TAB_PANE_BORDER_INSETS, oldInsets);

        TabbedDragListener tdl = new TabbedDragListener();
        pane.addMouseListener(tdl);
        pane.addMouseMotionListener(tdl);
        return pane;
    }

    protected void updateTab(Dockable dockable) {
View Full Code Here


        _dialog = new DialogForTesting(getName());
        _dialog.addTabbedPane("tabbed.name", "tab1", "tab2");
        final JTabbedPane pane = _dialog.getTabbedPane();
        pane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        _dialog.show();
        pane.addMouseListener(new TabbedPaneMouseListener());
        pane.setSelectedIndex(0);
        Rectangle tabBounds = pane.getUI().getTabBounds(pane, 1);
        Point p = SwingUtilities.convertPoint(pane, (tabBounds.x + tabBounds.width) / 2, (tabBounds.y + tabBounds.height) / 2,
                _dialog);
        FireableMouseClickEvent e = new FireableMouseClickEvent(_dialog);
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.