Wednesday, June 22, 2011

wizard with swinghtmltemplate

We want to create wizard for creating new persons with swinghtmltemplate. Wizard is a dialog with 3 pages:
  • Greeting
  • Entering data
  • Confirmation

We will store the overall form design in in the default.html. This file contains bottom panel and places the wizard page in specified position. This file can be used as a skin (or layout) later for simular wizards.

This is the final result (click to see animation):



swinghtmltemplate 0.6 released

Happy to announce release 0.6 of my swinghtmltemplate project.

There is an integration with Flying Saucer (xhtmlrenderer) project added in this release, allowing to use real html for component content and mix it with swing components. Read more about it here. You can check it online in the builder tool.

Other changes include:
  • popupMenu component, also available online in the builder tool
  • 'size' atribute for input tag
  • percents can be used as cell width/height in table tag
  • 'onchange' attribute in list tag
  • card layout support
  • bug fixes

Friday, June 3, 2011

xshelfview in JFXtras-0.7rc2 and title changing

xshelfview has a bug - the title doesn't change while scrolling images. The workaround is to use your own label to display title:

var shelf : XShelfView = XShelfView {
   showText: false,
   ...
}
var title : Label = Label {
   text: bind shelf.imageNames[shelf.index] as String
   font: Font.font("SansSerif", FontWeight.BOLD, 14);
   effect: DropShadow {color: Color.WHITE, radius: 5, blurType: BlurType.ONE_PASS_BOX}
}

this label has the same style as original label. The only thing left is to place label into right place.