You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
730 B
32 lines
730 B
package de.memtext.dlg; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import javax.swing.JButton; |
|
import javax.swing.JPanel; |
|
|
|
/** |
|
* @author MB |
|
* |
|
* To change this generated comment edit the template variable "typecomment": |
|
* Window>Preferences>Java>Templates. |
|
* To enable and disable the creation of type comments go to |
|
* Window>Preferences>Java>Code Generation. |
|
*/ |
|
public class OkDonePanel extends JPanel { |
|
JButton btnOk, btnDone; |
|
|
|
public OkDonePanel() { |
|
btnOk = new JButton("OK"); |
|
btnDone = new JButton("Fertig"); |
|
add(btnOk); |
|
add(btnDone); |
|
} |
|
|
|
public void addActionListener(ActionListener al) { |
|
btnOk.addActionListener(al); |
|
btnDone.addActionListener(al); |
|
} |
|
|
|
|
|
}
|
|
|