문제

Is there a widget for making configurable toolbar in java ?

Couldnt find anything in swingx but seems a common problem

도움이 되었습니까?

해결책

Use instances of Action to expose your application's functionality. Add these actions to your toolbar buttons. Because JToolBar is a Container you can add() and remove() buttons as needed in your toolbar editor by invoking revalidate() and repaint(). You can persist the current settings as suggested here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top