Package be.xtnd.commons.gui

Examples of be.xtnd.commons.gui.EscapeInternalFrame


    try
      ClassLoader cl = HelpWindow.class.getClassLoader()
      URL url = HelpSet.findHelpSet(cl, bundle.getString("appli.help_file"))
      helpViewer = new JHelp(new HelpSet(cl, url))

      EscapeInternalFrame frame = new EscapeInternalFrame();
      Object[] args = {bundle.getString("appli.name")};
      frame.setTitle(CommonsI18n.tr("{0} Help", args));

      frame.getContentPane().add(helpViewer);
      Dimension dim = new Dimension(770,500);
      frame.setMinimumSize(dim);
      frame.setPreferredSize(dim);
      frame.setSize(dim);
      frame.pack();
     
      frame.setIconifiable(true);
      frame.setClosable(true);
      frame.setResizable(true);
      frame.setMaximizable(true);
      frame.setName(name);
      frame.setVisible(true);
     
      MainGui.desktop.add(frame)
      frame.toFront();
      try {
        frame.setSelected(true);
      } catch (PropertyVetoException e) {}
      frame.setLocation(MainGui.centerOnDesktop(frame.getSize()));   
    }catch(HelpSetException e){
      logger.error("HelpSetException : file "+bundle.getString("appli.help_file")+" not found");
      JOptionPane.showMessageDialog(
          MainGui.desktop,
          CommonsI18n.tr("Cannot initialize help system.\nHelp will be deactived."),
View Full Code Here

TOP

Related Classes of be.xtnd.commons.gui.EscapeInternalFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.