@Override
public boolean isVisible(JList list, Object value, int row,
boolean isSelected, boolean cellHasFocus) {
SoundSource sound = (SoundSource)value;
SoundUI ui = getSoundUI(sound);
if(!isSelected) {
SourceDataLine dataLine = ui.line;
if(dataLine!=null)
dataLine.close();
}
boolean visible = isSelected;
if(!visible) {
ui.setTargetOpacity(0);
}
if(ui.targetOpacity>0) visible = true;
return visible;
}
AudioComponentsDemo.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:pumpernickel
作者:
评论列表
文章目录