jmf摄像头打开显示大小问题

jmf打开摄像头后,显示区域会很大,并不会嵌在我的swing界面上,是什么原因?在程序中,做了摄像头打开Component的大小控制,不起作用....
图片说明

上图中,黑色区域就是打开的摄像头显示的大小,完全覆盖在我的界面上...
下面是我的代码....【对不起,没有C币了,不能悬赏】

String str1 = "vfw:Logitech USB Video Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";

/**
 * 初始化摄像头控件
 */
public void CaptureDevice(){

// component = Box.createGlue();
// component.addNotify();

    try{
        deviceInfo = CaptureDeviceManager.getDevice(str2);
        mediaLocator = deviceInfo.getLocator();

        player = Manager.createRealizedPlayer(mediaLocator);
        player.start();

        component = player.getVisualComponent();//得到摄像头控件

        if (component != null){         
            Dimension dime = new Dimension(FGheadModule.capturePanel.getWidth(), FGheadModule.capturePanel.getHeight());
            component.setPreferredSize(dime);
            component.setMaximumSize(dime);
            component.setBounds(FGheadModule.capturePanel.getBounds());

            //把摄像头控件加到显示面板
            FGheadModule.capturePanel.add(component, java.awt.BorderLayout.CENTER);
        }

http://blog.csdn.net/changzheng/article/details/193435

http://wenku.baidu.com/link?url=P8hE2kAgyJSM3OAUPtbpThIHc-ZvIEaWZbjGU8CUIHCT2VqgaKvJ9TI7yPnYvJLSK8MNYLSNDWxfvDDUT6pI_Vg_7cDR2bsI6ZNxm3CPGwO

http://blog.163.com/xuyang1974@126/blog/static/26840163200842912419853/