Saturday, July 19, 2008

Java SwingBuilder 0.2 DEV : added support for SWT-style menu API

In my ongoing quest to maximize Swing developer productivity the latest version of the Java SwingBuilder introduces the SWT-style API for creating JMenuItems, which allows you to define the text, mnemonic and accelerator all in one shot, e.g.
JMenuItem(name=saveMenu, onAction=save, text="&Save\tCtrl+S")
Also, the visual layout Wiki has been updated to showcase how to implement John O'Conners Layout Manager Challenge:
http://weblogs.java.net/blog/joconner/archive/2006/10/layout_manager.html

using our visual layout DSL for MigLayout...piece of cake:
JPanel:
- JScrollPane(name=scroll1): JList(name=list)
- JLabel(name=lNameLbl, text=Last Name)
- JLabel(name=fNameLbl, text=First Name)
- JLabel(name=phoneLbl, text=Phone)
- JLabel(name=emailLbl, text=Email)
- JLabel(name=address1Lbl, text=Address 1)
- JLabel(name=address2Lbl, text=Address 2)
- JLabel(name=cityLbl, text=City)
- JLabel(name=stateLbl, text=State)
- JLabel(name=postalLbl, text=Postal Code)
- JLabel(name=countryLbl, text=Country)
- JTextField(name=lName)
- JTextField(name=fName)
- JTextField(name=phone)
- JTextField(name=email)
- JTextField(name=address1)
- JTextField(name=address2)
- JTextField(name=city)
- JTextField(name=state)
- JTextField(name=postal)
- JTextField(name=country)
- JButton(name=newBtn, text=New)
- JButton(name=deleteBtn, text=Delete)
- JButton(name=editBtn, text=Edit)
- JButton(name=saveBtn, text=Save)
- JButton(name=cancelBtn, text=Cancel)
- MigLayout: |
[grow] [grow] [grow]
scroll1
+1+* >lNameLbl lName fNameLbl fName
>phoneLbl phone emailLbl+2,email
>address1Lbl address1+*
>address2Lbl address2+*
>cityLbl city postalLbl postal
>stateLbl state
^|newBtn+*=1,^deleteBtn=1,^editBtn=1,^saveBtn=1,^cancelBtn=1 [grow]
Get the latest version from here:
http://javabuilders.googlecode.com/files/javabuilder.swing.0.2.DEV.2008-07-19.zip
More info as usual on JavaBuilders.org

2 comments:

Anonymous said...

Ultima Online Gold, UO Gold, crestingwait
buy uo gold
buy uo gold
buy uo gold
buy uo gold
buy uo gold
buy uo gold
buy uo gold
buy uo gold
buy uo gold
buy uo gold
lotro gold
wow gold
warhammer gold
buy aoc gold
buy aoc gold
buy aoc gold
buy aoc gold
buy aoc gold
buy aoc gold
buy aoc gold
Age of Conan Gold, AOC Gold

Anonymous said...

It is easy to control and pick up more all kinds of latale online gold and weapons or equipment which were dropped by those monsters. You will experience a wide range of attack and strikingly gorgeous combat effects with your own latale gold. You can also freely customize your character by equipping cool armors and weapons which those you must first have need to buy latale online gold and then you can have them. There is no doubt La Tale and its very cheap latale gold will attract female gamer and as well as young gamer eyeballs. You see my problem is that I do not what class is good or fun to play without any more necessary latale money.