CheckyButton! A combination of JCheckBox and JButton

I liked the checkbox+pulldown menu combination in Gmail. I have been dreaming of creating fascinating new type of controls including this one even before it came out. Last night I have been thinking about how to add a requested feature in Neembuu Uploader that clears the list of rows of completed downloads whenever the user wishes or always automatically. I got this idea for such control that combines both the actions of a button and checkbox in a single control.

Something like this:
Checky2

And creating it in Swing is very simple. Just extend the JButton and add a JCheckBox into it. As simple as that!

 

 

Create a CheckyButton class like this:

Checkybutton
Then in your frame or other class, import this class and construct it like a normal JButton(String text).

//Add our Checky Button

        final CheckyButton cb = new CheckyButton("Clear Completed");

        cb.setSize(100,20);

Then add the action listeners for both Button part and Checkbox part of our CheckyButton

//Add an Action Listener for "Button" part of CheckyButton

        cb.addActionListener(new ActionListener() {

            @Override

            public void actionPerformed(ActionEvent e) {

                JOptionPane.showMessageDialog(null, "JButton Clicked :)");

            }

        });

 

        //Add an Action Listener for "Checkbox" part of CheckyButton

        cb.getCheckBox().addActionListener(new ActionListener() {

            @Override

            public void actionPerformed(ActionEvent e) {

                if(cb.getCheckBox().isSelected())

                    JOptionPane.showMessageDialog(null, "Checkbox selected");

                else

                    JOptionPane.showMessageDialog(null, "Checkbox not selected");

            }

        });

And finally add this CheckyButton to your frame or any other container using their add(Component comp) method.

Done!

This is a test screenshot of one of the possible ways Neembuu Uploader might look like in next version:

Neembuuuploader2

 

Posted via email from Art, Science & Technology

Film Info and Reviews for Opera

As you may know, I've made and blogged about this same extension previously for Chrome and then for Firefox. Now I have made it available for Opera geeks too. (P.S. Having some technical problems with Safari Developer Certificate installation. Otherwise I could have made this extension for Safari too completing a collection. Sigh!)

I have released the version 1.0 some 10 days ago. It was an exact replica of the chrome extension. And then the best thing happened. Some user named Basilla from Russia requested for a feature in extension that enables users to add their own favorite movie sites as 11th option.

I hadn't think about that. I narrow-mindedly thought that these 10 sites will be enough. But that user being Russian wanted to have "Kinopoisk.ru" site in the extension. So I have added that feature (for both Chrome and Opera) and released v2.0 on August 8. Now it has around 181 users.

Short Desc: View complete info and reviews of a film from upto 10 sites of your choice such as Wikipedia, IMDB, RottenTomatoes, Roger Ebert etc

Screenshot:

Scr1
Scr5

 

Get it from here: https://addons.opera.com/addons/extensions/details/film-info-and-reviews/2.0/

Posted via email from Art, Science & Technology

Morning Pages, IMDB to Wikipedia for Chrome

I've not been blogging for a while. I've made 3 more extensions - 2 for Chrome and 1 for Opera (next post).

Morning Pages

I saw this thread today morning.

I would love an extension that when you open chrome for the first time 
in a day it opens your preset homepages and then every time after that 
it only opens your main homepage. 
For example everyday i check youtube, crackberry and hotmail but only 
once so i would like an extension that brings these up for the first 
load only and every time i launch chrome after that for the rest of 
the day i would like only google to come up. 

I found the idea interesting and also useful to me. So I have made it under the name "Morning Pages."

I will be having Facebook, Twitter, OMG-facts and Google Plus for my morning pages.

Here's a screenshot of the options page

Scr1
 

 

Get it from http://bit.ly/MorningPagesExtension

 

IMDB to Wikipedia

You get it from the title what this extension does.

Displays a small floating wiki globe over movie/actor pages in IMDB that links to equivalent page in Wikipedia (Support 6 languages)

Sample screenshots:

Scr1r

Scr2r

 

Posted via email from Art, Science & Technology