Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java で構成可能なツールバーを作成するためのウィジェットはありますか?
swingx で何も見つかりませんでしたが、一般的な問題のようです
のインスタンスを使用Actionして、アプリケーションの機能を公開します。これらのアクションをツールバー ボタンに追加します。と を呼び出して、ツールバー エディタで必要に応じてとボタンを使用できるためJToolBarです。ここで提案されているように、現在の設定を保持できます。Containeradd()remove()revalidate()repaint()
Action
JToolBar
Container
add()
remove()
revalidate()
repaint()