Swinging Task Dialog (part 5)


This morning I uploaded the new release  of  TaskDialog library 1.0RC.  I consider it a release candidate because all features planned for version 1.0 are now implemented. This release adds ability to produce dialogs with command links and many small enhancements and optimizations to the library.

Command Links

This is the last feature I had in my plan for the final release of the library and it proved to be the hardest to accomplish. I spent last 3 weeks working on it and now I think it is ready for general consumption 🙂

From the API point of view implementing command link based task dialog is very simple.

int choice = TaskDialogs.choice(
    "What do you want to do with your game in\nprogress?",
    "",
    1,
    new CommandLink("Exit and save my game", "Save your game in progress, then exit. " +
                    "This will\noverwrite any previosely saved games."),
    new CommandLink("Exit and don't save", "Exit without saving your game. " +
                    "This is counted\nas a loss in your statistics." ),
    new CommandLink("Don't exit", "Return to your game progress" ));

This produces the following dialog


It is possible to pass the custom icon into command link. By default standard “green arrow” icon is shown. All the text on command link obeys overrall style rules of the dialog and can be expressed in HTML.

Overall look and feel on Windows tries to closely resemble current Windows standard. Mac OS UI guidelines do not specify anything similar to the command links so framework resorts to the use of standard buttons.

I’m planning the final release of TaskDialog 1.0 library in one week  if no serious issues will be found.

The project is available at http://code.google.com/p/oxbow/ under BSD license.
As always – comments and suggestions are welcome.


5 comments

  1. Pingback: Java desktop links of the week, April 19 | Jonathan Giles

  2. Pingback: Tweets that mention Swinging Task Dialog (part 5) « it works on my machine! -- Topsy.com

  3. Pingback: Links of the week (April 20) | @Blog("Baptiste Wicht")

  4. Dear Eugene,

    Before all, I want to congratulate you about your job, very beautiful.
    I was an idea about your TaskDialogs.choice, why you have not TaskDialogsChoicePanel for to create Panel with the Layout of inside Panel of Dialog?

    Thanks

  5. Pretty nice post. I just stumbled upon your weblog
    and wanted to say that I’ve truly enjoyed surfing around your blog posts. After all I’ll be subscribing to your rss feed and I hope you write again soon!


Leave a comment