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

📄 capturedevicepanel.java

📁 FMJ(freedom media for java)是java视频开发的新选择
💻 JAVA
字号:
package net.sf.fmj.ui.registry;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JPanel;import net.sf.fmj.media.cdp.GlobalCaptureDevicePlugger;/** * Settings for capture devices. * TODO provide option to automatically detect capture devices - provide itime interval for polling. *  * @author Warren Bloomer * @author Ken Larson * */public class CaptureDevicePanel extends JPanel {	private static final long serialVersionUID = 1L;	/**	 * This is the default constructor	 */	public CaptureDevicePanel() {		super();		initialize();	}	/**	 * This method initializes this	 * 	 */	private void initialize() {		this.setSize(300, 200);		this.setLayout(new GridBagLayout());				final PluginsPanel p = new PluginsPanel(EntryPanel.TYPE_CAPTURE_DEVICE);		GridBagConstraints c1 = new GridBagConstraints();		c1.fill = GridBagConstraints.BOTH;		c1.weightx = 1.0;		c1.weighty = 1.0;		c1.gridwidth = GridBagConstraints.REMAINDER;		//c1.insets = new Insets(0, 2, 0, 2);		this.add(p, c1);		JButton buttonDetect = new JButton("Detect Capture Devices");				GridBagConstraints c2 = new GridBagConstraints();		c2.anchor = GridBagConstraints.WEST;				this.add(buttonDetect, c2);		buttonDetect.addActionListener(new ActionListener(){			public void actionPerformed(ActionEvent arg0) {				// TODO: this updates the CaptureDeviceManager, when really, it				// should just add stuff to the GUI's list.				GlobalCaptureDevicePlugger.addCaptureDevices();					p.getEntryPanel().load();							}					});	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -