Exemple #1
0
 private void CreateAndShowGUI()
 {
     //Make sure we have nice window decorations.
     JFrame.SetDefaultLookAndFeelDecorated(true);
     //Create and set up the window.
     frame = new JFrame("Stanford Named Entity Recognizer");
     frame.SetDefaultCloseOperation(WindowConstantsConstants.ExitOnClose);
     frame.GetContentPane().SetLayout(new BorderLayout());
     frame.GetContentPane().SetSize(Width, Height);
     frame.SetJMenuBar(AddMenuBar());
     //frame.setSize(new Dimension(WIDTH, HEIGHT));
     frame.SetSize(Width, Height);
     BuildTagPanel();
     BuildContentPanel();
     //Display the window.
     frame.Pack();
     frame.SetSize(Width, Height);
     frame.SetVisible(true);
 }