Package com.alee.laf.button

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


    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Progress dialog display button
        WebButton showModalLoad = new WebButton ( "Show dialog", loadIcon ( "dialog.png" ) );
        showModalLoad.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                // Load dialog
View Full Code Here


        final WebButton button = new WebButton ( "Click to start", start );
        button.setRound ( 9 );
        progressOverlay.setComponent ( button );

        // Progress switch
        button.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                boolean showLoad = !progressOverlay.isShowLoad ();
View Full Code Here

     */
    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        final WebButton notification1 = new WebButton ( "Simple custom content" );
        notification1.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                final WebNotification notificationPopup = new WebNotification ();
View Full Code Here

        componentTransition.setPreferredSize ( SwingUtils.max ( image1, image2 ) );

        // Images 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 () == image1 )
View Full Code Here

                final WebButton button = new WebButton ( "discard changes?" );
                button.setRolloverDecoratedOnly ( true );
                button.setDrawFocus ( false );
                button.setLeftRightSpacing ( 0 );
                button.setBoldFont ();
                button.addActionListener ( new ActionListener ()
                {
                    /**
                     * {@inheritDoc}
                     */
                    @Override
View Full Code Here

                NotificationManager.showNotification ( notificationPopup );
            }
        } );

        final WebButton notification2 = new WebButton ( "Limited duration notification" );
        notification2.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                final WebNotification notificationPopup = new WebNotification ();
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton showFrame = new WebButton ( "Show option pane", loadIcon ( "option.png" ) );
        showFrame.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                // Enabling dialog decoration
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton showFrame = new WebButton ( "Show dialog", loadIcon ( "dialog.png" ) );
        showFrame.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                // Enabling dialog decoration
View Full Code Here

        wig.addImage ( loadIcon ( "5.jpg" ) );
        imagegalleryPanel.add ( wig.getView ( false ), BorderLayout.CENTER );

        WebButton add = new WebButton ( "Add", loadIcon ( "add.png" ) );
        add.setRound ( StyleConstants.smallRound );
        add.addActionListener ( new ActionListener ()
        {
            private WebFileChooser fileChooser = null;

            @Override
            public void actionPerformed ( ActionEvent e )
View Full Code Here

        } );
        wigToolBar.add ( add );

        WebButton remove = new WebButton ( "Remove", loadIcon ( "remove.png" ) );
        remove.setRound ( StyleConstants.smallRound );
        remove.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                wig.removeImage ( wig.getSelectedIndex () );
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.