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 public FSTime() { 016 super("Zeit vorstellen", new FormSheetContentCreator() {public void createFormSheetContent(FormSheet fs) { 017 JPanel jpMain = new JPanel(); 018 JTFCheckable jtfTime = new JTFCheckable(1, new VCDate("Zielzeit"), 10); 019 jpMain.add(jtfTime); 020 fs.setComponent(jpMain); 021 fs.removeAllButtons(); 022 fs.addButton("Ausführen", ButtonIDs.BTN_OK, null); 023 }}, false); 024 } 025 }