SHARE
TWEET

Untitled

a guest Apr 19th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.awt.Component;
  2. import java.awt.event.ActionListener;
  3.  
  4. import javax.swing.JButton;
  5. import javax.swing.JFrame;
  6. import javax.swing.JTextArea;
  7.  
  8. @SuppressWarnings("deprecation")
  9. public abstract class Presenter extends java.applet.Applet implements ActionListener {
  10.    
  11.         /**
  12.      *
  13.      */
  14.     private static final long serialVersionUID = 1L;
  15.  
  16.  
  17.         public abstract Component createCenterComponent();
  18.        
  19.        
  20.         JButton next = new JButton("Next");
  21.         JButton prev = new JButton("Previous");
  22.        
  23.        
  24.         JFrame frame = new JFrame();
  25.        
  26.        
  27.         JTextArea textArea = new JTextArea("", 10, 1);
  28.         public String[] texts = {"Bild 1\nnice nice", "Bild 2", "Bild 3", "Bild 4"};
  29.        
  30.         public String[] getTexts() {
  31.             return texts;
  32.         }
  33.        
  34.        
  35.         public void showText(String text){
  36.            
  37.             textArea.setText(text);
  38.             textArea.repaint();
  39.            
  40.         }
  41.        
  42.  
  43.         public abstract void eastButtonPressed();
  44.  
  45.         public abstract void westButtonPressed();
  46.        
  47.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top