⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 videodeviceframe.java

📁 简易聊天工具
💻 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 + -