Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » style support by button widget
style support by button widget [message #721607] Fri, 02 September 2011 05:22 Go to next message
marie Missing name is currently offline marie Missing name
Messages: 63
Registered: March 2011
hi all,
I am using button widget in my RAP Application
Button previous = new Button(parent,SWT.ARROW|SWT.LEFT);
I want to create paging in this button.
So is Arrow style supported in it??
Please help me to resolve it
Thanks in advance.
Re: style support by button widget [message #722325 is a reply to message #721607] Mon, 05 September 2011 07:42 Go to previous message
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member

SWT.ARROW is a supported style for Button. You can see the Button class's javadoc for the list of supported style bits.
If you want to add some action to the arrow button when you click on it, you should add a Selection Listener to the button using button.addSelectionListener(SelectionListener listener).

Lakshmi P Shanmugam
Previous Topic:Exception in thread "AWT-AppKit" org.eclipse.swt.SWTException: Invalid thread access
Next Topic:Flat button inside toolbar
Goto Forum:

Current Time: Thu Aug 21 06:26:49 EDT 2014

Powered by FUDForum. Page generated in 0.02253 seconds