From: Giulio V. <gva...@us...> - 2004-07-26 13:50:34
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8569/src/org/exist/client Modified Files: ClientFrame.java Log Message: About for interactive client Index: ClientFrame.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/client/ClientFrame.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ClientFrame.java 5 Jul 2004 20:02:48 -0000 1.21 --- ClientFrame.java 26 Jul 2004 13:50:25 -0000 1.22 *************** *** 392,395 **** --- 392,396 ---- fileMenu.add(item); + fileMenu.addSeparator(); item = new JMenuItem("Quit", KeyEvent.VK_Q); item.setAccelerator(KeyStroke.getKeyStroke("control Q")); *************** *** 551,554 **** --- 552,568 ---- }); optionsMenu.add(item); + + JMenu HelpMenu = new JMenu("Help"); + HelpMenu.setMnemonic(KeyEvent.VK_H); + menubar.add(HelpMenu); + + item = new JMenuItem("About", KeyEvent.VK_A); + item.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + AboutAction(); + } + }); + HelpMenu.add(item); + return menubar; } *************** *** 1136,1139 **** --- 1150,1163 ---- } + private void AboutAction() { + JOptionPane.showMessageDialog(this, "eXist version 1.0, Copyright (C) 2004 Wolfgang Meier\n" + + "eXist comes with ABSOLUTELY NO WARRANTY.\n" + + "This is free software, and you are welcome to\n" + + "redistribute it under certain conditions;\n" + + "for details read the license file." + ); + return; + } + class TableMouseListener extends MouseAdapter { |