Created
August 21, 2017 11:01
-
-
Save Fundibalus/2019ad486f1b82236a677e99e0f77e9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public interface Aendererer { | |
public void manipuliere(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class Marlon implements Aendererer{ | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
} | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class Reverse implements Aendererer{ | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
} | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class Reverse_eingabe { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
GUI gui = new GUI(); | |
gui.start(); | |
} | |
} | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class UpperDowner implements Aendererer{ | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
} | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public interface Aendererer { | |
public void manipuliere(); | |
} | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
import java.awt.GridLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.ItemEvent; | |
import javax.swing.AbstractAction; | |
import javax.swing.Action; | |
import javax.swing.JButton; | |
import javax.swing.JComboBox; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
import javax.swing.JTextField; | |
/** | |
* | |
* @author B201 | |
*/ | |
class GUI implements Aendererer{ | |
JFrame frame; | |
JTextField eingabeFeld; | |
JButton knopf; | |
JComboBox box; | |
JLabel anzeige; | |
int conboindex = 0; | |
public void start() { | |
frame = new JFrame(); | |
frame.setLayout(new GridLayout(0,1)); | |
eingabeFeld = new JTextField(); | |
frame.add(eingabeFeld); | |
anzeige = new JLabel(); | |
frame.add(anzeige); | |
box = new JComboBox(); | |
box.addItem("Reverse"); | |
box.addItem("Marlon"); | |
box.addItem("UpperDowner"); | |
box.addItemListener(new ItemListener()); | |
frame.add(box); | |
knopf = new JButton(); | |
knopf.setAction(new Pressing()); | |
knopf.setText("Umkehren"); | |
frame.add(knopf); | |
frame.setVisible(true); | |
frame.pack(); | |
} | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
public class ItemListener implements java.awt.event.ItemListener { | |
@Override | |
public void itemStateChanged(ItemEvent e) { | |
int index = box.getSelectedIndex(); | |
conboindex = index; | |
} | |
} | |
private class Pressing extends AbstractAction { | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
import java.awt.GridLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.ItemEvent; | |
import javax.swing.AbstractAction; | |
import javax.swing.Action; | |
import javax.swing.JButton; | |
import javax.swing.JComboBox; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
import javax.swing.JTextField; | |
/** | |
* | |
* @author B201 | |
*/ | |
class GUI implements Aendererer{ | |
JFrame frame; | |
JTextField eingabeFeld; | |
JButton knopf; | |
JComboBox box; | |
JLabel anzeige; | |
int conboindex = 0; | |
public void start() { | |
frame = new JFrame(); | |
frame.setLayout(new GridLayout(0,1)); | |
eingabeFeld = new JTextField(); | |
frame.add(eingabeFeld); | |
anzeige = new JLabel(); | |
frame.add(anzeige); | |
box = new JComboBox(); | |
box.addItem("Reverse"); | |
box.addItem("Marlon"); | |
box.addItem("UpperDowner"); | |
box.addItemListener(new ItemListener()); | |
frame.add(box); | |
knopf = new JButton(); | |
knopf.setAction(new Pressing()); | |
knopf.setText("Umkehren"); | |
frame.add(knopf); | |
frame.setVisible(true); | |
frame.pack(); | |
} | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
public class ItemListener implements java.awt.event.ItemListener { | |
@Override | |
public void itemStateChanged(ItemEvent e) { | |
int index = box.getSelectedIndex(); | |
conboindex = index; | |
} | |
} | |
private class Pressing extends AbstractAction { | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class Marlon implements Aendererer{ | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class Reverse implements Aendererer{ | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class Reverse_eingabe { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
GUI gui = new GUI(); | |
gui.start(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package reverse_eingabe; | |
/** | |
* | |
* @author B201 | |
*/ | |
public class UpperDowner implements Aendererer{ | |
@Override | |
public void manipuliere() { | |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment