Previously reported issues were tested and found 
to be resolved in this beta.

j601 t beta issues

 * Grid Demo - Development Triangle
   Stack Error on pressing Enter or Mouse Click in Windows,
   and Java vanishes without a trace

 * Grid needs setfocus on mouse-down event (known issue)
   
 * Events Demo - tab to isigraph, and there's
   no way to dismiss the popup, only to kill process
   
 * Java FE sysdata returns nagatives with "-" not "_" as Windows FE
   should be "_" in both places, because it's for internal use

 * In Java FE, Input Log (Ctrl+D)
   - list does not get focus
   - enter does not select
   - dismissal (close [X]) pastes text anyway
   - Escape doesn't work
   - (in general, would be good if it prepended prompt '   ')

 * viewrgb used to initially (before stretch)
   preserve bitmap size, padding with default color (black)
   Now it stretches right away, and there is no way to
   view undistorted bitmaps smaller than 128 pixels or so.
   This is essential when working with image transformations
   to test on actual small images (loaded from file, e.g.)

      viewrgb 16bff* 2| !/~i.32  NB. stretches right away

 * > should also be called not "gedit"
   I meant the window title (pn), like "View Definition"
   Also it could be shared between all demos with a callback

 * Java gltext gives domain error, unless glfont is set first,
   Windows is OK, it uses System fornt. Maybe Forms font
   could be used as default. see focus.ijs
   
 * Java rectangle is 1 pixel larger than Windows, see focus.ijs
   I think this should be compensated in gl2 engine.

 * Mac fonts are smaller than Windows fonts, to be exact
   The ratio reflects 96/72 DPI between Windows and Mac
   As a result, fonts are disproportional to geometry
   as shown in Plot demo. Grid uses some magic so
   that fonts fit, but that may be non-standard (cheating).
   Look what Safari does: they swallow their pride and 
   compensate this to be compatible with the rest of the world.
   I think J should do the same (less the pride part).


NB. =========================================================
NB. focus.ijs

require 'gl2'
coinsert 'jgl2'

F=: 0 : 0
pc f;
xywh 6 6 50 50;cc g isigraph rightmove bottommove;
xywh 64 7 34 11;cc ok button leftmove rightmove;cn "OK";
pas 6 6;pcenter;
rem form end;
)

f_run=: 3 : 0
  wd F
  FOC=: 0
  wd 'pshow;'
)

f_close=: 3 : 0
  wd'pclose'
)

f_g_focus=: 3 : 0
  FOC=: 1
  f_g_paint''
)

f_g_focuslost=: 3 : 0
  FOC=: 0
  f_g_paint''
)

f_g_paint=: 3 : 0
  glclear''
  glfont 'Arial 10'  NB. remove in Java to see error
  gltextxy 10 10
  gltext 'Focus ',":FOC
  if. FOC do.
    glpen 1,PS_DOT [ glrgb 3#128
    glrect 0 0,glqwh''  NB. rectangle 1px larger in Java
  end.
  glpaint ''
)

f_run''

f_g_mbldown=: 3 : 0
  wd 'setfocus g'  NB. manual setfocus - OK
)

NB. =========================================================

<html><head></head>
<body>
    <p>Open in Safari and compare with J font sizes</p>
    <hr />

    <div style="font:10pt Arial">
        Focus 0. font:10pt Arial
    </div>

    <div style="font:10px Arial">
        Focus 0. font:10px Arial
    </div>
    <hr />

    <p>15*4%3 = 20</p>

    <div style="font:15pt Arial">
        Focus 0. font:15pt Arial
    </div>

    <div style="font:20px Arial">
        Focus 0. font:20px Arial
    </div>
</body>
</html>



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to