我的J2ME编程练习(7)——Canvas2__教程 |
|
日期:2007-5-20 0:37:11 人气:89 [大 中 小] |
|
|
|
} size=sizeChoice.getSelectedIndex(); switch(size){ case 0:size=Font.SIZE_SMALL;break; case 1:size=Font.SIZE_MEDIUM;break; case 2:size=Font.SIZE_LARGE;break; } //select the style boolean[] styleSelect =new boolean[4]; for(int i=0;i<4;i++){ if (styleChoice.isSelected(i)&&i==0){ style |= Font.STYLE_PLAIN; } else if (styleChoice.isSelected(i)&&i==1){ style |=Font.STYLE_BOLD; } else if (styleChoice.isSelected(i)&&i==2){ style |=Font.STYLE_ITALIC; } else if (styleChoice.isSelected(i)&&i==3){ style |=Font.STYLE_UNDERLINED; } |
|
出处:本站原创 作者:佚名 |
|
|