×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Israel Edet
Added: Jan 4, 2017 10:04 PM
Views: 3
Tags: no tags
implemented by panels that can be swapped for another . during screen change
  1.  
  2. package interfaces;
  3.  
  4. import javax.swing.JPanel;
  5.  
  6. /**
  7.  * This interface is called anytime we need to switch a panel
  8.  * with another.
  9.  * @version 1.0
  10.  * @author Epic
  11.  */
  12. public interface Switchable {
  13.     /**
  14.      * This is called when we need to switch a panel and then we
  15.      * take in as param the new panel to switch to
  16.      * @param panelToSwitch panel we want to move to
  17.      */
  18.     public void OnPanelSwitched(JPanel panelToSwitch);
  19. }
  20.