Package com.alee.laf.button

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


        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


    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Simple directory chooser
        final WebButton directoryChooserButton = new WebButton ( "Choose any directory..." );
        directoryChooserButton.addActionListener ( new ActionListener ()
        {
            private WebDirectoryChooser directoryChooser = null;

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

        // States switch buttons
        final WebButton reloadView = new WebButton ( loadIcon ( "switch.png" ) );
        reloadView.setEnabled ( false );
        reloadView.setDrawFocus ( false );
        reloadView.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                reloadView.setEnabled ( false );
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Simple file chooser example
        final WebButton fileChooserButton1 = new WebButton ( "Choose any file..." );
        fileChooserButton1.addActionListener ( new ActionListener ()
        {
            private WebFileChooser fileChooser = null;
            private File file = null;

            @Override
View Full Code Here

            }
        } );

        // Images only chooser
        final WebButton fileChooserButton2 = new WebButton ( "Choose any image..." );
        fileChooserButton2.addActionListener ( new ActionListener ()
        {
            private WebFileChooser imageChooser = null;
            private File file = null;

            @Override
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton message = new WebButton ( "Show message", loadIcon ( "message.png" ) );
        message.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showMessageDialog ( owner, "Sample message goes here", "Message", WebOptionPane.INFORMATION_MESSAGE );
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton message = new WebButton ( "Show confirm", loadIcon ( "econfirm.png" ) );
        message.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showConfirmDialog ( owner, "Save some virtual settings?", "Confirm", JOptionPane.YES_NO_CANCEL_OPTION,
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton message = new WebButton ( "Show error", loadIcon ( "error.png" ) );
        message.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showMessageDialog ( owner, "Sample error goes here", "Error", WebOptionPane.ERROR_MESSAGE );
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton message = new WebButton ( "Show confirm", loadIcon ( "confirm.png" ) );
        message.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showConfirmDialog ( owner, "Did You see this dialog before?", "Confirm", WebOptionPane.YES_NO_OPTION,
View Full Code Here

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        WebButton message = new WebButton ( "Show input", loadIcon ( "input.png" ) );
        message.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showInputDialog ( owner, "Write something here:", "Input", JOptionPane.QUESTION_MESSAGE, null, null,
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.