I have created 2 panels on the left is a menu panel with buttons. i want to use these buttons to change the card shown in cardlayout on the right side panel. The name of the panel on the right is mainPanel and the card name is Student_Home what do i add to the button in order to change card ? thanks for your help
posted 12 years ago
Welcome to the Ranch Jon. This from the CardLayout API: show public void show(Container parent, String name) Flips to the component that was added to this layout with the specified name, using addLayoutComponent. If no such component exists, then nothing happens.
Regarding Neatbeans I think you will need to access the proper Container and call getLayout on it. [ December 07, 2003: Message edited by: Jose Botella ]