mgarin / weblaf

WebLaF is a fully open-source Look & Feel and component library written in pure Java for cross-platform desktop Swing applications.
http://weblookandfeel.com
GNU General Public License v3.0
1.13k stars 234 forks source link

Using WebButton as WebTextField Leading/Trailing Component #711

Open HouariBoumediane opened 4 months ago

HouariBoumediane commented 4 months ago

Hi, First, thank you for this great job; I am using WebLaf it's been years (starting with 1.29); Now i have moved to v.1.2.14, before, it was easy for me, but now i can't add webButton inside WebTextField as Leading or Trailing Component and get a WebDateField, WebColorChooserField or WebTreeFilterField similar component. Also, if use : WebButton btn = new WebButton ( StyleId.datefieldButton.at (tf), Icons.filter, Icons.filterHover ); I get this error :

[AWT-EventQueue-0] WARN com.alee.managers.style.data.SkinInfo - Unable to find style 'textfield:textfield.button' for component: com.alee.laf.button.WebButton[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.5,border=com.alee.utils.laf.WebBorder@3d580f4a,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=com.alee.managers.icon.LazyIcon[id=filter],disabledIcon=,disabledSelectedIcon=,margin=null,paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=,defaultCapable=true]

Also, can i use transparent WebTextField with input prompt and just borders.

Thanks in advance.