?? videodeviceframe.java
字號:
import javax.swing.*;
public class VideoDeviceFrame extends CaptureDeviceFrame
{
public VideoDeviceFrame(ClientFrame parent)
{
super(parent);
adLabel.setEnabled(false);
afLabel.setEnabled(false);
adCbb.setEnabled(false);
afCbb.setEnabled(false);
}
public void ok_ActionPerformed()
{
if(!vdCbb.isEnabled())
{
JOptionPane.showMessageDialog(p, "沒有視頻設備", "系統消息", JOptionPane.INFORMATION_MESSAGE);
}
else
{
p.videoFormat = getVideoFormat();
p.videoDevice = getVideoDevice();
p.sendMsg("VIDEOCHAT_CONNECT:" + (String)p.sendTo.getSelectedItem() + ":" + p.name);
try
{
p.recordDoc.insertString(p.recordDoc.getLength(), "等待對方連接..." + '\n', null);
}catch(Exception e){}
}
setVisible(false);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -