> Java > tutorials > sourceexplorer > todo
by ZweiBieren   Java coffee cup logo
 


extract
// code used if aaa is selected and ppp is not //=aaa -ppp
code used if aaa and ppp are both selected //=aaa +ppp

// final static int INITIALFONTSIZE = 12; // initial fontsize for samples //=table -sizer
// final static int INITIALFONTSIZE = 12; // initial fontsize for samples //=sizer -table
final static int INITIALFONTSIZE = 12; // initial fontsize for samples //=sizer +table

= new SpinnerNumberModel(INITIALFONTSIZE, 8, 40, 4); //=sizer
setRowHeight(INITIALFONTSIZE + ADDFORROWHEIGHT); //=table
// int fontsize = INITIALFONTSIZE; //=samples -sizer
int newRowHeight = Math.max(INITIALFONTSIZE - 4, fontsize ) //=samples +sizer

the above problem is an unfortunate interaction between conflicting designs of the selection mechaism
for making a non-executable, the design says we use the feature tag if possible
or something like that

---------


subject = new FontViewer
with full window it shows as a feature of readcats S.B. window|readcats ???
but with subset FONTCOL, feature is window
code is
// create FontViewer to be tested //=window
// final FontViewer subject = new FontViewer(); //=window -stringmap
// final FontViewer subject = new FontViewer(new StringMap()); //=stringmap -readcats
final StringMap cats = new StringMap(categoryFile); //=readcats
cats.read(); //=readcats
final FontViewer subject = new FontViewer(cats); //=readcats
ARRRGH


 
Copyright © 2018 ZweiBieren, All rights reserved. Mar 23, 2018 18:15 GMT Page maintained by ZweiBieren