Package com.alee.laf.button

Examples of com.alee.laf.button.WebButton.addActionListener()


        componentTransition.setPreferredSize ( SwingUtils.max ( toolBar1, toolBar2 ) );

        // States switch button
        final WebButton switchView = new WebButton ( loadIcon ( "switch.png" ) );
        switchView.setDrawFocus ( false );
        switchView.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                if ( componentTransition.getContent () == toolBar1 )
View Full Code Here


     */
    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        final WebButton notification1 = new WebButton ( "Simple text notification" );
        notification1.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                NotificationManager.showNotification ( "Simple notification" );
View Full Code Here

                NotificationManager.showNotification ( "Simple notification" );
            }
        } );

        final WebButton notification2 = new WebButton ( "Notification with custom icon" );
        notification2.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                NotificationManager.showNotification ( "Custom notification icon", NotificationIcon.tip.getIcon () );
View Full Code Here

                NotificationManager.showNotification ( "Custom notification icon", NotificationIcon.tip.getIcon () );
            }
        } );

        final WebButton notification3 = new WebButton ( "Notification with options" );
        notification3.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                NotificationManager.showNotification ( "Choose one of available options...", NotificationIcon.database.getIcon (),
View Full Code Here

                {
                    setVisible ( false );
                }
            };
            login.addActionListener ( listener );
            cancel.addActionListener ( listener );
            content.add ( new CenterPanel ( new GroupPanel ( 5, login, cancel ) ), "0,2,1,2" );
            SwingUtils.equalizeComponentsWidths ( login, cancel );

            add ( content );
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton showFrame = new WebButton ( "Show file chooser", loadIcon ( "file.png" ) );
        showFrame.addActionListener ( new ActionListener ()
        {
            private WebFileChooser fileChooser = null;

            private WebFileChooser getFileChooser ()
            {
View Full Code Here

        // Images panel
        final WebPanel imagesPanel = new WebPanel ( new HorizontalFlowLayout ( 5, false ) );

        // States switch buttons
        final WebButton slideLeft = new WebButton ( loadIcon ( "left.png" ) );
        slideLeft.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                // Changing image positions in lsit
View Full Code Here

                // Performing transitions
                performTransitions ( imagesPanel, images, Direction.left );
            }
        } );
        final WebButton slideRight = new WebButton ( loadIcon ( "right.png" ) );
        slideRight.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                // Changing image positions in lsit
View Full Code Here

        LanguageManager.registerLanguageUpdater ( new MyLabelUpdater () );

        // Creating example UI
        final WebButton myButton = new WebButton ();
        myButton.setLanguage ( "my.button" );
        myButton.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                final WebDialog myDialog = new WebDialog ( owner );
View Full Code Here

        final WebButton sourceButton = WebButton.createIconWebButton ( JarEntry.javaIcon );
        TooltipManager.setTooltip ( sourceButton, JarEntry.javaIcon, ReflectUtils.getJavaClassName ( classType ), TooltipWay.up );
        sourceButton.setRolloverDecoratedOnly ( true );
        sourceButton.setFocusable ( false );

        sourceButton.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                owner.showSource ( classType );
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.