var fDesc=new Array(); fDesc[0] = "Java2D contains one of the best Java SE classes, java.awt.AlphaComposite. You can set an alpha composite on a Graphics2D context to blend a draw primitive with the current graphics. This is a small tool that helps you understand how these composites work."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }