How do I add a selected buttons on a ToolBar

In eclipse, the first button in the tool bar is "New". But it is not a simple button. It contains a group buttons. You can select one from the list of the "New" button. How can I make such stype tool bar? Thanks.
[226 byte] By [youhaodiyia] at [2007-11-27 10:01:24]
# 1

Such a bottom is implemented using a combination of buttons.

Here is my personal implementation of such a button:

http://www.geocities.com/icewalker2g/downloads/MenuedButton.java

You can also search the web using the keyword "Popup Menu JButton", you should be able to find other implementations of the such a Button feature

ICE

icewalker2ga at 2007-7-13 0:34:34 > top of Java-index,Desktop,Core GUI APIs...