Creating a fancy search bar with Swing components

Posted by Kavon Farvardin on Stack Overflow See other posts from Stack Overflow or by Kavon Farvardin
Published on 2010-12-20T13:42:12Z Indexed on 2010/12/21 15:54 UTC
Read the original article Hit count: 224

Filed under:
|
|

I'm trying to come up with an elegant recreation of the search bar component in Thunderbird. The clear button doesn't appear until there is text in the box, so that screen-shot is a bit inaccurate.

Should I use a layered pane and get some buttons to float above the box? (but then getting the text to not appear below the buttons would be hacky)

Maybe just put buttons at the ends of the search bar and have it somehow blend in?

Any ideas or maybe a style reconsideration is welcome, thank you.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing