java - how to remove a pane and add one on top of the old pane, after clicking on a button? -
this question has answer here:
- how change jpanel inside jframe on fly? 14 answers
- change jpanel after clicking on button 2 answers
i need cannot done tabbed pane or cardlayout
... need after clicking on login , shows new pane information of username... , erases login buttons, put instead logout option or update info option.
currently have this:
and button "enter" changes "update" after logged in, , logout button there... in reality, need first login window, , after having signed in, logout window update options...
is there way hide elements on same pane or there way add new pane in front of old one?
i don't believe code helpful here since doing using netbeans ide , in java , , dragging panes, etc, generates code itself...
Comments
Post a Comment