, , , , JPanel ( "box" JPanel), JToolBar JPanel JToolBar, . NetBeans, , .
With this setting, I can use the setVisible () method to show and hide individual buttons and JToolBar. The documentation states that the validate () method should be used to move the buttons, but it works for me without it, at least under Windows 7. When I tried it under Ubuntu 10, the toolbar layout was wrong, so my answer is the moment is partially correct.
Mr ed source
share