Skip to main content

arrow button

1 reply [Last post]
prancius
Offline
Joined: 2005-07-20

Hello, i am looking for sollution "arrow button"
In swt there are opportunity to create Button with arrows <, > and so on.

Is mustang (jdk6.0) have something like swt, o maybe someboody can post Graphics example how to draw on the button? Thanks a lot.

prancius

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
leouser
Offline
Joined: 2005-12-12

a couple of simple ideas would be:
1. Create some arrow images and pass the right one to the JButtons Image constructor.
2. Use the javax.swing.plaf.basic.BasicArrowButton class.

leouser