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
772 B
32 lines
772 B
package de.memtext.widgets; |
|
|
|
import java.awt.Frame; |
|
import java.awt.HeadlessException; |
|
|
|
import javax.swing.JCheckBox; |
|
|
|
import de.memtext.dlg.OkDlg; |
|
/** |
|
* Implementing subclasses have to place the checkbox. |
|
* If the checkbox was selected when clicking OK the method dontshowAgain is |
|
* executed |
|
*/ |
|
public abstract class BeginnerScreen extends OkDlg { |
|
protected JCheckBox cxDontShowAgain = |
|
new JCheckBox("Diese Seite nicht mehr zeigen"); |
|
public BeginnerScreen(Frame owner, String title) throws HeadlessException { |
|
super(owner, title); |
|
|
|
} |
|
|
|
final protected void performOk() { |
|
if (cxDontShowAgain.isSelected()) |
|
dontShowAgain(); |
|
this.hide(); |
|
} |
|
|
|
abstract protected void dontShowAgain(); |
|
|
|
} |
|
|
|
//Created on 22.06.2004 at 08:40:06
|