|
|||
|
The Swank (and JTcl) team is happy to announce the Swank 3.0.0 release. Getit now at:
http://kenai.com/projects/swank/downloads Or find out more information at the Swank website: http://swank.kenai.com ------------------------------------------------------------------------ - Swank - A Tk-like interface to the Java Swing Widgets http://swank.kenai.com Swank is an implementation of the Tk GUI Toolkit written in Java. Swank implements a large extent of the Tk 8.4 syntax and commands, plus some additional widgets. Swank is a companion project to, and requires code from, the JTcl Project, which itself is based on Jacl. Together JTcl and Swank are analagous to Tcl and Tk. The Swank distribution includes the latest JTcl (as of 12 July 2012) bundled into the Jar file. JTcl itself bundles ITcl, the TJC Tcl to Java compiler, and much of Tcllib. Also included is a Swank version of the Extended Tk Console (TkCon) and JFreeChart ( http://www.jfree.org/jfreechart/) libraries to support Swank's canvas based charts. INSTALLING Swank Swank requires a Java JVM 1.5 or higher (Java 1.6 is recommended). You mayhave to install Java if you don't already have it installed. Swank is distributed as a ZIP archive. Download the latest swank-{version}..zip file from the Swank website, and unzip into a directory of your choice.. Unix/Linux/Mac OSX shell script (`wisk') and Windows batch file (`wisk.bat') are included. wisk (the Swank equivalent of wish) supports three startup options -swkcon (to startup with the Swank version of TkCon) -console (to startup with a simple console) -demo (to startup showing a demonstration based on the Tk widget demo). SOURCE CODE Swank uses the Mercurial distributed source code control system. Install Mercurial using your OS distribution package manager or get executables fromthe Mercurial site: http://mercurial.selenic.com/ Browse Swank source code: http://kenai.com/projects/swank/sources. Clone the Swank repository: hg clone https://hg.kenai.com/hg/swank~swank-main DOCUMENTATION Please refer to the Swank web site. Most Tk documentation and tutorials are relevant to the use of Swank. MAILING LIST and BUG REPORTING Please subscribe and use the Swank mailing list for questions and to share information. The Swank Bug tracker should be used to report bugs. Mailing lists: http://kenai.com/projects/swank/lists Bug reporting: http://kenai.com/jira/browse/SWANK Recent changes: Add support for mouse wheel bindings spinbox Add -width configuration Fix problem in setting to, from, value and increment canvas Allow specifiying filename and image type from file extension when saving swank canvas. Fix setting binding in canvas. Was adding, rather than replacing. Ensure that text parameter items on canvas have a default font set. Allow image item on canvas to have 2 or 4 coordinates. If 4, then image is automatically scaled to fit into allotted space. Fix lower command for shapes ItemConnector didn't have startcon and endcom parameters Change the way Canvas preferred scrollsize is calculated Add Locked state to canvas items tk_messageBox Fix error when closing without selecting jpassword Add ability to preset username and add message to password dialog. Charts Add option to invert xy chart axis direction, Add ability to set symbol drawn on xy plots Fix problem when plotting a single data point. Add stat plot that doesn't have bars, just symbol and error line. JTcl Update to using 2.3.0 check/radiobuttons Fix problem with traces activating twice if trace set on check/radiobutton var Fix size calculation of check and radiobuttons when using icon and no indicator Setting vars from checkbutton listener had problem with menu item checkbuttons (bad cast) Fix threading problem with Radiobutton variables and values wm Add support for getting window title "wm title winName" (could only set it) Could set, but not get, alwaysontop with "wm" command tk_popup Added Fonts Change code back so specifying an empty string for a font gives you a default (SansSerif) text Add tag ranges to text widget did not support more than one range pair. Ignore bad location exceptions in text remove Only index paragraphs of text widget if text has been inserted or deleted. Speeds up some operations a lot. More fixes to search subcommand of text widget. Passes most, but not all tests now. Ignore trailing newlines in regexp mode text search Case insensitive search in text widget didn't work with exact matches. Fix get subcommand of text widget to allow more than two indices. Fix errors in delete subcommand of text widget Text searching was't wrapping properly when only one index specified for search Searching backwards in a text widget did not find pattern if in first line of text. button Change button code to allow placing text under icon Add simple Tcl editor Allow typing "edit" with no arguments to start up blank editor. Use new editor for swkcon "edit" command. listbox Add ListCell Renderer to allow setting colors of foreground/background in lists by row image Add write, height and width subcommands. clipboard Add flavors subcommand to clipboard command, and allow getting RTF, HTML and Image types from clipboard When clipboard get -type HTML is specified get html if it is on the clipboard, in preference to converting rtf to html. canvas3d More work getting shape3d attributes to work properly Begin adding code for appearance modification, and fixes for picking. Updates for picking in the 3D canvas Start adding all text parameters for text shape in 3D and work on picking interface Add Font parameter for SwkTest2D in 3D canvas jsplitpane Add code for setting orientation of split panes. html Fix bug in setting -page for html pane Miscellaneous GetValueOnEventThread had fundamental problem in use of SwingUtilities.invokeAndWait (possible to return before invoked task completes) Update some demos, fixing code shown Code button, and displaying arrow heads in arrow demo. Add back various options scrollbarpolicy etc. Add back class option Winfo screen height was returning width Fix problems with destroy command calling Interp from event thread. Focus listener had class cast problem jcombobox and spinbox didn't have -state parameter Fix Cut/Paste and change menubar to be packed so it works better on Mac Various Null Pointer Exceptions and other bugs eliminated Add new swkcon shell scripts to startup with swkcon (wisk takes a flag to do this, but that won't work if you want to start by double-clicking) |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|