JDraw
JDraw is a pixel oriented graphics editor designed especially for small to medium-sized pictures used to decorate web pages. It is completely written in Java, simple to use and saves (animated) GIFs, ICOs and PNGs.
The author started writing this tool because it took him ages to do little things like changing a couple of pixels, making a colour transparent, adjusting some RGB values. Most graphic tools irritate with hundreds of sexy filters but have steep learning curves or just don't care about simple pixels. So it's high time for a good old pixel editor.

Features;
  • plain, filled and gradient filled rectangles
  • plain, filled and gradient filled ovals
  • plain and gradient filled text
  • colour picking, cropping, filling
  • image scaling (since v1.2beta)
  • image rotation (since v1.2.1beta)
  • copying/moving clips
  • rotating/flipping clips (since v1.2.2beta)
  • save animated GIFs (interlaced/not interlaced)
  • save PNGs (interlaced/not interlaced)
  • save ICOs (true colour, 32 bit) (since v1.1.3)
  • save JPEGs of configurable quality (since v1.1.4)
  • read all image formats supported by Java
  • colour reduction, colour replacing, colour swapping
  • grayscaling (since v1.2.2beta)
  • image browser (since v1.3beta)
  • tolerant fill tool (since v1.3beta)
  • palette operations like editing RGB colours, alpha values
  • configuration of the Look&Feel to use (since v.1.1.3)

System requirements
  • Minimum JRE version is 1.4
  • Tested with version 1.6ga5


JDraw on an eComStation machine with Open JDK


Installing JDraw
Download jdraw_v1.1.5.jar or download jdraw_v1.1.5.plastic.jar. Make a new folder(directory) with the name "JDraw". Copy the downloaded jar file(s) to the new created folder(directory) "JDraw". That's it!

The jdraw.cmd file
JDraw works with Open JDK in OS/2-eCS. I have made a jdraw.cmd file with the following contents;
@echo off
SET CLASSPATH=
set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
set path=[drive: java]\JAVA160ga5\bin
[drive: jdraw]
cd [drive: jdraw]\jdraw
java -Duser.home=[drive: jdraw]\jdraw -Dlf="javax.swing.plaf.metal.MetalLookAndFeel" -jar
 jdraw_v1.1.5.plastic.jar 2>jdraw-bugs.txt
rem java -Duser.home=[drive: jdraw]\jdraw -jar jdraw_v1.1.5.jar 2>jdraw-bugs.txt
The line with "java -Duser.home=" is for this page in two lines. In the commandfile its one line, mind the space between "-jar" and "jdraw_v1.1.5.plastic.jar".
I use 2 separate folders (directories), one for Java and one for JDraw with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: jdraw] = drive with JDraw

should be replaced with real drive letters. Edit and save the file "jdraw.cmd" from the "jdraw-ecs.zip" file. This file is copied to the "jdraw" folder(directory). Furthermore, different paths?, adjust according to your needs.
Create a new program object. Specify the path and file name: "[drive: jdraw]\jdraw\jdraw.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "JDraw". You find enclosed in the file "jdraw-ecs.zip" a JDraw OS/2 icon.

Parameters / options explained
  • The statement "-Duser.home=[drive: jdraw]\jdraw" will ensure that JDraw will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>jdraw-bugs.txt" ensures that errors are saved in the file "jdraw-bugs.txt". The 2 in "2>" is not a typo!

Observations
Which jar file to download? I did not see any differences, try yourself. Both ways do show same user interface in the same manner. Mind the "rem"! The program is still beta, so sometimes you get a bug file full with errors. Use the program for small pictures, loading a picture from my digital camera takes ages. If you go to "File" and then to "Settings", you will see a window which is not right. You can overcome this by making the window higher, see picture below.


JDraw settings menu bug can easily be fixed


Download
In the file you can find the above command file (all driveletters are set to C:) and an OS/2 JDraw icon: jdraw-ecs.zip.

revision March 27, 2020