Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Component;
- import java.awt.event.ActionListener;
- import javax.swing.JButton;
- import javax.swing.JFrame;
- import javax.swing.JTextArea;
- @SuppressWarnings("deprecation")
- public abstract class Presenter extends java.applet.Applet implements ActionListener {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- public abstract Component createCenterComponent();
- JButton next = new JButton("Next");
- JButton prev = new JButton("Previous");
- JFrame frame = new JFrame();
- JTextArea textArea = new JTextArea("", 10, 1);
- public String[] texts = {"Bild 1\nnice nice", "Bild 2", "Bild 3", "Bild 4"};
- public String[] getTexts() {
- return texts;
- }
- public void showText(String text){
- textArea.setText(text);
- textArea.repaint();
- }
- public abstract void eastButtonPressed();
- public abstract void westButtonPressed();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement