> Java > tutorials > sourceexplorer > todo
by ZweiBieren   Java coffee cup logo
Source Explorer
Java Notes

* This button downloads an installer jar. To install the app, put the jar in a folder and double-click it. Double click the application's icon to run it.


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 © 2021 ZweiBieren, All rights reserved. Mar 29, 2021 14:53 GMT Page maintained by ZweiBieren