/** * Static Constructor * * @throws Exception */ private void jbInit() throws Exception { this.setJMenuBar(menuBar); confirmPanel.setActionListener( this); // set it first just to know buttons are working in case something failed // mEMail.setIcon(Images.getImageIcon2("EMailSupport16")); mEMail.setText(msgBL.getMsg(Env.getCtx(), "EMailSupport")); mEMail.addActionListener(this); mPreference.setIcon(Images.getImageIcon2("Preference16")); mPreference.setText(msgBL.getMsg(Env.getCtx(), "Preference")); mPreference.addActionListener(this); mEnd.setIcon(Images.getImageIcon2("End16")); mEnd.setText(msgBL.getMsg(Env.getCtx(), "End")); mEnd.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.ALT_MASK)); mEnd.addActionListener(this); // westPanel.setLayout(westLayout); westPanel.setName("westPanel"); westPanel.setRequestFocusEnabled(false); infoPanel.setLayout(infoLayout); infoPanel.setName("infoPanel"); infoPanel.setRequestFocusEnabled(false); this.getContentPane().add(confirmPanel, BorderLayout.SOUTH); this.getContentPane().add(westPanel, BorderLayout.WEST); westPanel.add( iconLabel, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 10, 10, 10), 0, 0)); this.getContentPane().add(infoPanel, BorderLayout.CENTER); infoPanel.add( info, new GridBagConstraints( 0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(10, 10, 10, 10), 0, 0)); // menuBar.add(mFile); mFile.add(mEMail); if (Env.getUserRolePermissions().isShowPreference()) mFile.add(mPreference); mFile.addSeparator(); mFile.add(mEnd); } // jbinit