archive-za.com » ZA » P » PITMAN.CO.ZA

Total: 183

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • www.pitman.co.za

    (No additional info available in detailed archive for this subpage)
    Original URL path: (2015-12-05)


  • CHARVA: A Java Windowing Toolkit for Text Terminals
    using Java Secure Socket Extension JSSE asynchronous messaging using Java Message Service JMS database access using Java Database Connectivity JDBC mail access using JavaMail XML parsing and generation using Xerces from Apache org and many more click here for a list Here are some benefits of CHARVA The Total Cost of Ownership TCO of an ASCII terminal or thin client is considerably lower than that of a desktop PC TCO refers to the total cost of acquiring deploying and maintaining equipment in the case of a PC running MS Windows and configured as a GUI workstation the ongoing maintenance cost including protecting the PC against viruses is considerable For many applications such as Point of Sale and Point of Service POS a graphical workstation is complete overkill ASCII terminals are still widely used for POS applications at least in the developing world CHARVA addresses the headache of software distribution in a large network You can use a single Linux computer to serve many dozens of ASCII terminals terminal emulators each running its own instance of the same application The Linux computer can handle the user interface logic and communicate using standard protocols such as HTTP HTTPS RMI or SOAP via a network LAN or WAN with an Application Server which handles the business logic So instead of having to download a new version of the application to each workstation every time the application changes you download only one copy of the new version to the Linux front end server The memory footprint and CPU usage of the CHARVA framework are considerably less than those of Swing Provided you are using a terminal with a high bit rate or a PC based terminal emulator such as PuTTY on a LAN the response of CHARVA is much crisper than that of Swing

    Original URL path: http://www.pitman.co.za/projects/charva/index.html (2015-12-05)
    Open archived version from archive

  • CHARVA: A Java Windowing Toolkit for Text Terminals
    8500 and manages Pacific National s locomotive wagon freight and container movements around Australia Pacific National is the largest private rail freight operator in Australia with annual operating revenue of more than 1 billion dollars AUD Pacific National operates nationally and has around 3100 staff 1000 locomotives 10200 wagons and 85 sites Recently Pacific National requested that Fujitsu add a Container Handling Module to track container movements for containers in Pacific National s possession A component of that module is used by crane and forklift operators placing containers on trucks wagons etc who have wireless networked computer systems in their cabins These systems 486 s running DOS 6 22 connect to a central server and run a CHARVA based application which interfaces to the main system giving the operators interactive communications work orders status updates etc The actual charva application system is quite complex and has real time screen updates via event callbacks and other advanced java usage The 486 systems in the cabins have a screen display of only 40 characters wide by 8 lines so we have had quite a challenge getting things to fit we had to remove all line drawing capabilities etc to save screen space Thank you for providing such an excellent package Yours sincerely Ross Wordley Principal Consultant Project Manager CHS Project PRINCE2 Practitioner Fujitsu Australia and New Zealand Address L12 99 Gawler Place Adelaide SA 5000 Email ross wordley at au fujitsu com Web site au fujitsu com Craig O Shannessy has developed a Charva based application for UndercoverWear that runs on ruggedized mobile computers mounted on forklift trucks Each mobile computer has an 8 row by 40 column screen and a pass thru printer and Telnets using a radio link into a Linux box The back end is an EJB based application

    Original URL path: http://www.pitman.co.za/projects/charva/Applications.html (2015-12-05)
    Open archived version from archive

  • CHARVA: A Java Windowing Toolkit for Text Terminals
    from JDK 1 1 x to JDK 1 2 or later because in later versions of the JDK Sun had forced implementations of the AWT to subclass Sun proprietary classes So I wrote CHARVA from scratch I tried to maintain compatibility as far as possible with the AWT and Swing APIs in the source code of your Java program just change package references from java awt to charva awt and from javax swing to charvax swing to port the program from Swing to CHARVA Of course CHARVA does not support GUI type features such as cut and paste and drag and drop But it provides most of the standard graphical AWT compatible base classes such as Point Rectangle Dimension Component Container Window Frame Dialog etc It also provides the FlowLayout BoxLayout BorderLayout and GridBagLayout geometry managers CHARVA also provides the following classes which are designed to be compatible with their Swing counterparts see the Javadoc generated API documentation for details Box BoxLayout ButtonGroup and JRadioButton JButton JCheckBox JComponent JComboBox JDialog JFileChooser JFrame JLabel JList JMenuBar JMenuItem JMenu JOptionPane JPanel JPasswordField JProgressBar JScrollBar JScrollPane JTabbedPane JTable JTextArea JTextField JViewport The JList JTable and JTextArea are typically displayed inside a JScrollPane in the same manner as the corresponding Swing versions of these components CHARVA provides mouse support only on terminal emulators that report mouse events such as xterm and PuTTY CHARVA supports any terminal that has a terminfo capability description file in other words all popular terminals such as VT100 VT220 Wyse and ANSI terminals and the xterm and PuTTY terminal emulators are supported CHARVA supports color on terminals that have color capability such as the ANSI terminal xterm and PuTTY CHARVA has support for UTF 8 character sets so it can handle non ASCII character sets e g Hungarian Czech Cyrillic

    Original URL path: http://www.pitman.co.za/projects/charva/Features.html (2015-12-05)
    Open archived version from archive

  • CHARVA: A Java Windowing Toolkit for Text Terminals
    loop and use a lot of CPU time Charva now exits cleanly in this situation thanks to Uwe Buettner for the fix The static method invokeLater Runnable has been added to the EventQueue class This provides a way for threads other than the event dispatching thread to indirectly call methods on graphic components A JProgressBar class has been added to the library The tutorial program tutorial charva Tutorial java demonstrates how to use the new class Version 0 9 12 2002 10 24 Added some methods contributed by Chris Rogers to JTabbedPane Fixed charva awt Toolkit so that System err and System out both get redirected to HOME charva log and output can be sent to each stream without overwriting output on the other thanks Chris Added a Toolkit redrawWin method with which one can force a redraw of the screen thanks to Craig O Shannessy Version 0 9 11 2002 9 23 Fixed a problem reported by Uwe Buettner in which input from a barcode scanner was read incorrectly This was caused by the ncurses refresh function being called many times in rapid succession In CHARVA version 0 9 11 multiple SyncEvents appearing on the event queue are coalesced into a single event which prevents refresh being called too often Version 0 9 10 2002 8 16 Added the method Toolkit triggerGarbageCollection This is a convenient but optional way of triggering garbage collection one would typically call it after every major user action for example just before returning from the actionPerformed method that handles the menu commands The actual call to System gc does not happen until the screen has been redrawn so the user does not notice any delay Also added the following interfaces classes constructors and methods interface ComboBoxModel interface MutableComboBoxModel class DefaultComboBoxModel constructor JScrollPane method JScrollPane getViewport method JList setListData Vector method JList setListData Object constructor JComboBox Vector method JComboBox setModel ComboBoxModel method JComboBox setSelectedItem int Reworked JComboBox extensively to make it more consistent with the Swing API it now also supports the ItemSelectable interface Refactored AbstractButton and its subclasses JButton JCheckBox and JRadioButton to implement the ItemSelectable interface consistently Version 0 9 9 2002 6 15 Fixed a problem in JTextField where keystrokes were not being echoed until the next key was typed Fixed a problem in JTable where if a cell was wider than the JScrollPane that contained the JTable the table would not scroll left and right correctly The JTable now also reacts to the HOME and END keys which move the cursor to the start or end of the current cell respectively Fixed a bug in the recording of scripts using the Dcharva script record option the function keys above F9 are now recorded correctly Version 0 9 8 2002 4 08 Added the ListDataListener interface and the AbstractListModel and ListDataEvent classes and fixed up DefaultListModel so that it notifies the ListDataListeners when the list contents change Added functionality into the tutorial program to demonstrate how this works Implemented a nice suggestion

    Original URL path: http://www.pitman.co.za/projects/charva/Status.html (2015-12-05)
    Open archived version from archive

  • CHARVA: A Java Windowing Toolkit for Text Terminals
    charva script record system property set to a filename as in the following example java Dcharva script record scriptfile classpath classes lib charva jar classname This will cause CHARVA to log the hexadecimal key code of each key and its equivalent symbolic name if it is a control character or function key in the file scriptfile I m having trouble capturing function keys in CHARVA when I define the charva script record scriptfile property as described above the output in the scriptfile indicates that a sequence of bytes such as ESC A is produced when I press the F1 key instead of the KeyEvent VK F1 code Check that the TERM environment variable is set correctly for your terminal type Then run the Linux Unix command infocmp to display what the terminfo file for your terminal type thinks the byte sequence for the F1 key should be The output of the infocmp command will contain a string such as kf1 EOP for example this indicates that terminfo expects the F1 key to produce the byte sequence ESC O P There are two ways of fixing the problem If you are using a terminal emulator there is usually some way of configuring the key mapping so that any particular key will generate a specified byte sequence You should configure the terminal emulator so that each function key generates the same byte sequence as specified by the terminfo file The same applies to the cursor keys If you are using a non programmable terminal or a terminal emulator with a hardcoded key mapping you will have to edit the terminfo file itself To do this run infocmp tmp termfile to decompile the terminfo file into a human readable format Edit the file tmp termfile with an ASCII editor It may be advisable to rename the terminal type in this file thus creating a new customized terminal type Recompile the edited terminfo file with the command tic tmp termfile To get more information about the infocmp and tic commands use man infocmp and man tic Can I use function keys like ALT F1 in my CHARVA program What about SHIFT F1 or CTRL F1 It depends on your terminal or terminal emulator If your terminal emulator can be configured to produce a unique escape sequence for each function key with the SHIFT CTRL or ALT modifier then that escape sequence can be mapped to a function key in the terminfo file Note that terminfo and the ncurses library do not know or care about the SHIFT CTRL or ALT modifiers they only know about function keys kf1 to kf n where n is some arbitrarily large integer The unmodified function keys are mapped to kf1 to kf12 on a keyboard with 12 function keys Typically you would map the SHIFTed function keys to kf13 kf24 and so on To do this you would have to edit and recompile the terminfo file as described above As far as your Java application code is concerned you would have to write it to handle key codes such as KeyEvent VK F13 and above your application would not receive an indication that the SHIFT CTRL or ALT modifier key was pressed together with the function key Currently CHARVA defines only F1 to F20 but the definitions can easily be extended I m having trouble getting the cursor control keys mapped correctly Which fields must I edit in the terminfo file Note that all the symbols for key strings in the terminfo file start with k Symbols that don t start with k refer to strings that are received by the terminal not to strings that are sent by the terminal For example cuf1 is the byte sequence which if sent to the terminal will move the cursor forward one column whereas kcuf1 is the byte sequence sent by the terminal when the RIGHT CURSOR key is pressed Here is a list of useful key symbols in the terminfo file i e in the output of infocmp or the input to tic kcub1 is the left arrow key kcuf1 is the right arrow key kcuu1 is the up arrow key kcud1 is the down arrow key kend is the END key khome is the HOME key knp is the PAGE DOWN key kpp is the PAGE UP key kich1 is the INSERT key kdch1 is the DELETE key After running my Charva application for a while the screen becomes corrupted with control characters Is there a way to programmatically force a refresh of the screen Yes call the Toolkit redrawWin method to indicate to the ncurses library that all the lines of the screen have changed and need to be redrawn followed by the Toolkit sync method to actually redraw the screen The underlying cause of the screen corruption may be that your terminal or terminal emulator is not 100 compatible with the terminfo file corresponding to your TERM environment variable see questions above Try running your application on a different type of terminal with TERM set appropriately Can I record and play back scripts Yes you can record a script file as shown above by defining the system property charva script record as a filename To play the script back define the system property charva script playback as in the following example java Dcharva script playback scriptfile classpath classes lib charva jar classname Charva will then play back the keystrokes that were recorded in the script file with the original time delays between keystrokes Since the script file is an ASCII file you can edit it and modify the time delays and the keystrokes Each line of the script file has three fields the first field is the hexadecimal code for the keystroke the second field is the time delay in milliseconds and the third field is the symbolic name of the keystroke which is ignored on playback While the script file is being played back any keys that you enter via the keyboard will also be

    Original URL path: http://www.pitman.co.za/projects/charva/FAQ.html (2015-12-05)
    Open archived version from archive

  • CHARVA: A Java Windowing Toolkit for Text Terminals
    Status FAQ Licence Screenshots Documentation Download Applications Support Contribute Quick Info Operating System Linux Language Java C Licence GNU Author Rob Pitman License CHARVA is licensed with the GNU Lesser General Public License This means that it is free for

    Original URL path: http://www.pitman.co.za/projects/charva/Licence.html (2015-12-05)
    Open archived version from archive

  • CHARVA: A Java Windowing Toolkit for Text Terminals
    src example java Merely by changing occurrences of java awt to charva awt and javax swing to charvax swing in the source code the program displays the following output captured on an xterm display The program also reacts in the same way to user keystrokes try compiling the two versions of the program and comparing their behavior To switch between the tabbed panes in the CHARVA version you have to

    Original URL path: http://www.pitman.co.za/projects/charva/Screenshots.html (2015-12-05)
    Open archived version from archive



  •