示例#1
0
  private void init() {
    this.setLayout(new GridBagLayout());
    final JPanel screenP = initScreen();
    final JScrollPane commentary = initCommentary();
    statusBar = new ILabel("EMPTYSTR");
    initDS();

    final GridBagConstraints cs = new GridBagConstraints();
    cs.gridx = 0;
    cs.gridy = 0;
    cs.fill = GridBagConstraints.BOTH;
    add(screenP, cs);

    final GridBagConstraints cc = new GridBagConstraints();
    cc.gridx = 1;
    cc.gridy = 0;
    cc.gridheight = 2;
    cc.fill = GridBagConstraints.VERTICAL;
    add(commentary, cc);

    final GridBagConstraints cb = new GridBagConstraints();
    cb.gridx = 0;
    cb.gridy = 1;
    cb.fill = GridBagConstraints.HORIZONTAL;
    add(buttons, cb);

    final GridBagConstraints csb = new GridBagConstraints();
    csb.gridx = 0;
    csb.gridy = 2;
    csb.fill = GridBagConstraints.HORIZONTAL;
    add(statusBar, csb);

    screen.setDS(D);
    languageChanged();
  }