Logo Search packages:      
Sourcecode: jmk version File versions  Download package

static void edu::neu::ccs::jmk::awt::MakeWindow::createMakeWindow ( Make  make,
String[]  targets 
) [inline, static]

Creates the make frame and all the windows that it contains.

Definition at line 318 of file MakeWindow.java.

References getTargetString(), load(), loadResources(), and MakeWindow().

                                                                   {
    loadResources();
    Frame f = new Frame(Make.version);
    f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
      System.exit(0);
      }
    });
    f.setFont(Font.decode(getFontResource()));

    Label label = new Label(makefileLabel(make));
    f.add(label, "North");
    MakeWindow mw = new MakeWindow(make, targets,
                           getRowsResource(),
                           getColumnsResource());
    mw.setEditable(false);
    f.add(mw, "Center");
    f.setMenuBar(createMenuBar(mw, make, f, label));
    Panel panel = new Panel(new BorderLayout());
    Label targetLabel = new Label(" Targets:");
    MakeInput field = new MakeInput(mw.getTargetString());
    field.addActionListener(mw);
    panel.add(targetLabel, "West");
    panel.add(field, "Center");
    f.add(panel, "South");
    label.addFocusListener(field);
    mw.addFocusListener(field);
    panel.addFocusListener(field);
    targetLabel.addFocusListener(field);

    f.pack();
    f.show();
    field.requestFocus();
    mw.load();
  }


Generated by  Doxygen 1.6.0   Back to index