This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Button with choice  RSS feed

 
Thiago Souto Maior
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
in swing what is the name of a button that can also be a list. It is usually used in toolbar, such as the one in internet exlporer. You can chosse between a click on the button or a click on a little arrow that makes a menu appear.
(example : the "back" button of I.E.)
do you see what i mean ?
how to do one like that, in swing ?
thanks
Thiago
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would say, with a normal Swing, this is not possible, so either you create your own Swing component or you can work with a workaround, like using JButton and JComboBox.
If you go the first way, you should have a look to the implementation of Swing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!