DNB5brims
DNB5brims

Reputation: 30558

How to implement my own UI element on Java?

The Java SE don't have a iPhone like segment button. So, I would like to create my own segment button using Java. But my question is...how can I do a customized UI instead of using default UI? Any ideas on how to implement it or where can I start? Thanks.

Upvotes: 3

Views: 435

Answers (2)

GrahamA
GrahamA

Reputation: 5923

The JIDE Common Layer (Open source/Dual-licensed) contains a toggle button JideToggleButton that can be made to look like this:

JideToggleButton

Which is not an unreasonable impersonator.

Upvotes: 0

mre
mre

Reputation: 44240

You'll have to implement your own LaF. Here's a decent "how to" to get you started.

Happy coding!

Upvotes: 3

Related Questions