001 package market.stdform; 002 003 import javax.swing.JPanel; 004 005 import market.VCDate; 006 import market.swing.JTFCheckable; 007 import sale.FormSheet; 008 import sale.FormSheetContentCreator; 009 010 /** 011 * FormSheet for the time simulator. 012 */ 013 public class FSTime extends FormSheet { 014 015 /** 016 * ID for serialization. 017 */ 018 private static final long serialVersionUID = -2422226991163007658L; 019 020 public FSTime() { 021 super("Zeit vorstellen", new FormSheetContentCreator() { 022 private static final long serialVersionUID = -4551250656200365315L; 023 public void createFormSheetContent(FormSheet fs) { 024 JPanel jpMain = new JPanel(); 025 JTFCheckable jtfTime = new JTFCheckable(1, new VCDate("Zielzeit"), 10); 026 jpMain.add(jtfTime); 027 fs.setComponent(jpMain); 028 fs.removeAllButtons(); 029 fs.addButton("Ausführen", ButtonIDs.BTN_OK, null); 030 }}, false); 031 } 032 }