GUI Help(Layered panes, opacity, events)
I have an application that has a component hierarchy of this
-Frame
-options(JPanel)
users(JButton)
groups(JButton)
-layeredPane(JLayeredPane)
-userView(JPanel)
bunch of stuff
-groupView(JPanel)
bunch of stuff
and I have a mouseClickedListener attached to users with this code inside
Code:
userView.setEnabled(true);
userView.setVisible(true);
userView is not opaque and starts off disabled.
layeredPanel is not opaque and starts off enabled.
The question I have is how come my layeredPane will not cover up userView?(I don't want userView to be visible unless the button is clicked)
I've done something similar to this using TabbedPanes but I don't want tabs this time. I can only have 1 view showing at once and it must only show when the user presses the button.