FAQHow do i get rid of the wingS default style for buttons?Quick answer: Try button.setStyle(null). Long answer: Overwrite/add a new CSS default style for buttons, wings 2 comes with a default CSS style sheet, which also styles the SButtons. Try the Web Developer Plugin, which is freely available for the FireFox browser, then you can live edit the style of the buttons. To ignore the Styles for SButton elements you could simply a) overwrite and modify the .SButton CSS declarations or b) apply a different/no css class name to SButtons On initialisation the current PLAF assign the component class name as CSS class name (So SButtons will render <button … class="SButton">). This default CSS styles are predefined in the default wings2 style. You can either overwrite them by adding custom own styles, meaning registering a new CSS file as demonstrated in wingset demo or by applying antother/no style class to buttons. |