public BoardFrame(DesignFile p_design,Stat p_stat){
  stat=p_stat;
  design_file=p_design;
  item_id_no_generator=new IdGenerator();
  resources=new GuiResources(p_stat,"gui.resources.BoardFrame");
  gui_help=new GuiHelp(stat);
  work_frame=new JFrame();
  menubar=new BoardMenuBar(p_stat,this);
  work_frame.setJMenuBar(menubar);
  toolbar_panel=new BoardToolbar(p_stat,this);
  work_frame.add(toolbar_panel,java.awt.BorderLayout.NORTH);
  message_panel=new BoardPanelStatus(p_stat);
  work_frame.add(message_panel,BorderLayout.SOUTH);
  select_toolbar=new BoardToolbarSelectedItem(p_stat,this);
  screen_messages=new ScreenMessages(message_panel,p_stat);
  scroll_pane=new JScrollPane();
  scroll_pane.setPreferredSize(new Dimension(1150,800));
  scroll_pane.setVerifyInputWhenFocusTarget(false);
  work_frame.add(scroll_pane,BorderLayout.CENTER);
  board_panel=new BoardPanel(screen_messages,this,p_stat);
  scroll_pane.setViewportView(board_panel);
  work_frame.setTitle(resources.getString("title"));
  work_frame.addWindowListener(new WindowStateListener());
  work_frame.pack();
}

public BoardFrame ( DesignFile p_design , Stat p_stat ) { stat = p_stat ; design_file = p_design ; item_id_no_generator = new IdGenerator ( ) ; resources = new GuiResources ( p_stat , "gui.resources.BoardFrame" ) ; gui_help = new GuiHelp ( stat ) ; work_frame = new JFrame ( ) ; menubar = new BoardMenuBar ( p_stat , this ) ; work_frame . setJMenuBar ( menubar ) ; toolbar_panel = new BoardToolbar ( p_stat , this ) ; work_frame . add ( toolbar_panel , java . awt . BorderLayout . NORTH ) ; message_panel = new BoardPanelStatus ( p_stat ) ; work_frame . add ( message_panel , BorderLayout . SOUTH ) ; select_toolbar = new BoardToolbarSelectedItem ( p_stat , this ) ; screen_messages = new ScreenMessages ( message_panel , p_stat ) ; scroll_pane = new JScrollPane ( ) ; scroll_pane . setPreferredSize ( new Dimension ( 1150 , 800 ) ) ; scroll_pane . setVerifyInputWhenFocusTarget ( false ) ; work_frame . add ( scroll_pane , BorderLayout . CENTER ) ; board_panel = new BoardPanel ( screen_messages , this , p_stat ) ; scroll_pane . setViewportView ( board_panel ) ; work_frame . setTitle ( resources . getString ( "title" ) ) ; work_frame . addWindowListener ( new WindowStateListener ( ) ) ; work_frame . pack ( ) ; }
creates new form boardframe . the parameters p_item_observers and p_item_id_no_generator are used for synchronizing purposes , if the frame is embedded into a host system ,
