Пример #1
0
 /**
  * This method initializes this
  *
  * @return void
  */
 private void initialize() {
   this.setSize(626, 441);
   this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   this.setJMenuBar(getMenuBarPrincipal());
   this.setContentPane(getPrincipalPane());
   this.setTitle(
       MessagesUtil.getString("JanelaPrincipal.application.name")
           + MessagesUtil.getString(
               "JanelaPrincipal.application.version")); //$NON-NLS-1$ //$NON-NLS-2$
 }
Пример #2
0
 /**
  * This method initializes menuConectar
  *
  * @return javax.swing.JMenu
  */
 private JMenu getMenuConectar() {
   if (menuConectar == null) {
     menuConectar = new JMenu();
     menuConectar.setText(MessagesUtil.getString("JanelaPrincipal.menu.conectar")); // $NON-NLS-1$
     menuConectar.add(getMenuItemConectarJogador());
     menuConectar.add(getMenuItemChat());
   }
   return menuConectar;
 }
Пример #3
0
 /**
  * This method initializes menuItemJogador
  *
  * @return javax.swing.JMenuItem
  */
 private JMenuItem getMenuItemArena() {
   if (menuItemArena == null) {
     menuItemArena = new JMenuItem();
     menuItemArena.setAction(getVisualizarArenaAction());
     menuItemArena.setText(
         MessagesUtil.getString("JanelaPrincipal.menu.item.arena")); // $NON-NLS-1$
   }
   return menuItemArena;
 }
Пример #4
0
 /**
  * This method initializes menuConfigurar
  *
  * @return javax.swing.JMenu
  */
 private JMenu getMenuVisualizar() {
   if (menuVisualizar == null) {
     menuVisualizar = new JMenu();
     menuVisualizar.setText(
         MessagesUtil.getString("JanelaPrincipal.menu.visualizar")); // $NON-NLS-1$
     menuVisualizar.add(getMenuItemArena());
   }
   return menuVisualizar;
 }
Пример #5
0
 /**
  * This method initializes menuItemJogador
  *
  * @return javax.swing.JMenuItem
  */
 private JMenuItem getMenuItemJogador() {
   if (menuItemJogador == null) {
     menuItemJogador = new JMenuItem();
     menuItemJogador.setAction(getConfigurarJogadorAction());
     menuItemJogador.setText(
         MessagesUtil.getString("JanelaPrincipal.menu.item.jogador")); // $NON-NLS-1$
     getConfigurarJogadorAction()
         .putValue(ConfigurarJogadorAction.JOGADOR_VO, JogadoresBusiness.getJogadorLocal());
   }
   return menuItemJogador;
 }