public DemoPanel() {
JTaskPane taskPane = new JTaskPane();
// "System" GROUP
JTaskPaneGroup systemGroup = new JTaskPaneGroup();
systemGroup.setTitle(RESOURCE.getString("Main.tasks.systemGroup"));
systemGroup.setToolTipText(RESOURCE
.getString("Main.tasks.systemGroup.tooltip"));
systemGroup.setSpecial(true);
systemGroup.setIcon(new ImageIcon(TaskPaneMain.class
.getResource("icons/tasks-email.png")));
systemGroup.add(makeAction(RESOURCE.getString("Main.tasks.email"), "",
"icons/tasks-email.png"));
systemGroup.add(makeAction(RESOURCE.getString("Main.tasks.delete"), "",
"icons/tasks-recycle.png"));
taskPane.add(systemGroup);
// "Office" GROUP
JTaskPaneGroup officeGroup = new JTaskPaneGroup();
officeGroup.setTitle(RESOURCE.getString("Main.tasks.office"));
officeGroup.add(makeAction(RESOURCE.getString("Main.tasks.word"), "",
"icons/tasks-writedoc.png"));
officeGroup.setExpanded(false);
officeGroup.setScrollOnExpand(true);
taskPane.add(officeGroup);
// "SEE ALSO" GROUP and ACTIONS
JTaskPaneGroup seeAlsoGroup = new JTaskPaneGroup();
// this group can not be collapsed
seeAlsoGroup.setCollapsable(false);
seeAlsoGroup.setTitle(RESOURCE.getString("Main.tasks.seealso"));
seeAlsoGroup.add(makeAction("The Internet", RESOURCE
.getString("Main.tasks.internet.tooltip"), "icons/tasks-internet.png"));
seeAlsoGroup.add(makeAction(RESOURCE.getString("Main.tasks.help"),
RESOURCE.getString("Main.tasks.help.tooltip"),
"icons/tasks-question.png"));
taskPane.add(seeAlsoGroup);
// "Details" GROUP
JTaskPaneGroup detailsGroup = new JTaskPaneGroup();
detailsGroup.setTitle(RESOURCE.getString("Main.tasks.details"));
detailsGroup.setScrollOnExpand(true);
JEditorPane detailsText = new JEditorPane("text/html", "<html>");
LookAndFeelTweaks.makeMultilineLabel(detailsText);
LookAndFeelTweaks.htmlize(detailsText);
detailsText.setText(RESOURCE.getString("Main.tasks.details.message"));
detailsGroup.add(detailsText);
taskPane.add(detailsGroup);
JScrollPane scroll = new JScrollPane(taskPane);
scroll.setBorder(null);