| 29 | import periphery.SourceGame; |
| 30 | |
| 31 | public class Gui { |
| 32 | |
| 33 | private static final String RESULT = "Result"; |
| 34 | private static final String DETAILS = "Details"; |
| 35 | private static final String OUTPUT = "Output"; |
| 36 | private static final String INPUT = "Input"; |
| 37 | private static final String SETUP = "Setup"; |
| 38 | |
| 39 | private static final int WIDTH = 520; |
| 40 | private static final int HEIGHT = 560; |
| 41 | |
| 42 | private String title; |
| 43 | |
| 44 | private JTabbedPane tabbedPane; |
| 45 | |
| 46 | private JFrame frmTesttitle; |
| 47 | |
| 48 | // input |
| 49 | private Validator<Place> validatePlace = Validator.PLACE_ACCEPTOR; |
| 50 | private Validator<Place> validatePlaceIntern = place -> this.validatePlace.run(place); |
| 51 | |
| 52 | // details |
| 53 | |
| 54 | // result |
| 55 | |
| 56 | // new |
| 57 | private SetupPanel setupPanel; |
| 58 | private InputPanel inputPanel; |
| 59 | private OutputPanel outputPanel; |
| 60 | private DetailsPanel detailsPanel; |
| 61 | private ResultPanel resultPanel; |
| 62 | |
| 63 | public static int fontSizeSuccess = 18; |
| 64 | public static int fontSizeLarge = 16; |
| 65 | public static int fontSize = 14; |
| 66 | public static int fontSizeSmall = 12; |
| 67 | public static final String FONTTYPE = "Dialog"; |
| 68 | public static final Font FONT_CONTINUE = new Font(FONTTYPE, Font.BOLD, fontSize); |
| 69 | public static final Font FONT_SMALL = new Font(FONTTYPE, Font.PLAIN, fontSizeSmall); |
| 70 | public static final Font FONT_SUCCESS = new Font(FONTTYPE, Font.PLAIN, fontSizeSuccess); |
| 71 | public static final Font FONT_LARGE = new Font(FONTTYPE, Font.PLAIN, fontSizeLarge); |
| 72 | public static final Font DEFAULT_FONT = new Font(FONTTYPE, Font.PLAIN, fontSize); |
| 73 | public static final String BROWSE_TEXT = "Browse"; |
| 74 | public static final String CONTINUE_TEXT = "Continue"; |
| 75 | public static final Dimension DIMENSION_OF_BROWSE = new Dimension(120, 30); |
| 76 | public static final Dimension DIMENSION_OF_CONTINUE = new Dimension(120, 40); |
| 77 | public static final int SEPARATING_DISTANCE = 25; |
| 78 | |
| 79 | /** |
| 80 | * Launch the application. |
| 81 | */ |
| 82 | public static void main(String[] args) { |
| 83 | // Main.main(args); |
| 84 | EventQueue.invokeLater(() -> { |
| 85 | try { |
| 86 | new Gui("Test"); |
| 87 | // this.frmTesttitle.setVisible(true); |
| 88 | } catch (Exception e) { |