AudioComponentsDemo.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:pumpernickel 作者:
@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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号