google-code-export / macwidgets

Automatically exported from code.google.com/p/macwidgets
1 stars 0 forks source link

OS x style search box [all platforms] #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A great enhancement to this widget set would be a component that has a  glass 
icon on the left of 
the input field (like the os x style search box) and that has the same 
rendering on all platforms

Something like the attached image

Original issue reported on code.google.com by satis...@gmail.com on 27 Jun 2009 at 2:05

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 27 Jun 2009 at 6:57

GoogleCodeExporter commented 9 years ago
Hi, I think i found a way to do this using Java itself:

textField.putClientProperty("JTextField.variant", "search") 

this should do exactly what you want. I found it in a really 
useful article by apple on how to make java mac-like controls 
(http://developer.apple.com/technotes/tn2007/tn2196.html)

Hope it's helpful, James

Original comment by pech...@gmail.com on 26 Aug 2009 at 9:19

GoogleCodeExporter commented 9 years ago
Hi James,

Apple's client property will on work on a Mac.

-Ken

Original comment by kenneth....@gmail.com on 26 Aug 2009 at 9:22

GoogleCodeExporter commented 9 years ago
This component is provided by the xswingx project:

http://code.google.com/p/xswingx/

Original comment by kenneth....@gmail.com on 4 Dec 2009 at 1:23