ScreenShareRTMPT.instance.jVScreenXSpin = new JSpinner(
new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerX, 0, VirtualScreenBean.screenWidthMax, 1)
);
ScreenShareRTMPT.instance.jVScreenXSpin.setBounds(400, 170, 60, 24);
ScreenShareRTMPT.instance.jVScreenXSpin.addChangeListener( new ChangeListener(){
public void stateChanged(ChangeEvent arg0) {
// TODO Auto-generated method stub
calcNewValueXSpin();
}
});
ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.jVScreenXSpin);
//Spinner Y
VirtualScreenBean.vScreenSpinnerY = 0;
ScreenShareRTMPT.instance.vscreenYLabel = new JLabel();
ScreenShareRTMPT.instance.vscreenYLabel.setText("SharingScreen Y:");
ScreenShareRTMPT.instance.vscreenYLabel.setBounds(250, 200, 150, 24);
ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenYLabel);
ScreenShareRTMPT.instance.jVScreenYSpin = new JSpinner(
new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerY, 0, VirtualScreenBean.screenHeightMax, 1)
);
ScreenShareRTMPT.instance.jVScreenYSpin.setBounds(400, 200, 60, 24);
ScreenShareRTMPT.instance.jVScreenYSpin.addChangeListener( new ChangeListener(){
public void stateChanged(ChangeEvent arg0) {
// TODO Auto-generated method stub
calcNewValueYSpin();
}
});
ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.jVScreenYSpin);
//Spinner Width
VirtualScreenBean.vScreenSpinnerWidth = VirtualScreenBean.screenWidthMax;
logger.debug("Modify 111 "+VirtualScreenBean.vScreenSpinnerWidth);
ScreenShareRTMPT.instance.vscreenWidthLabel = new JLabel();
ScreenShareRTMPT.instance.vscreenWidthLabel.setText("SharingScreen Width:");
ScreenShareRTMPT.instance.vscreenWidthLabel.setBounds(250, 240, 150, 24);
ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenWidthLabel);
ScreenShareRTMPT.instance.jVScreenWidthSpin = new JSpinner(
new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerWidth, 0, VirtualScreenBean.screenWidthMax, 1)
);
ScreenShareRTMPT.instance.jVScreenWidthSpin.setBounds(400, 240, 60, 24);
ScreenShareRTMPT.instance.jVScreenWidthSpin.addChangeListener( new ChangeListener(){
public void stateChanged(ChangeEvent arg0) {
// TODO Auto-generated method stub
calcNewValueWidthSpin();
}
});
ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.jVScreenWidthSpin);
//Spinner Height
VirtualScreenBean.vScreenSpinnerHeight = VirtualScreenBean.screenHeightMax;
ScreenShareRTMPT.instance.vscreenHeightLabel = new JLabel();
ScreenShareRTMPT.instance.vscreenHeightLabel.setText("SharingScreen Height:");
ScreenShareRTMPT.instance.vscreenHeightLabel.setBounds(250, 270, 150, 24);
ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenHeightLabel);
ScreenShareRTMPT.instance.jVScreenHeightSpin = new JSpinner(
new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerHeight, 0, VirtualScreenBean.screenHeightMax, 1)
);
ScreenShareRTMPT.instance.jVScreenHeightSpin.setBounds(400, 270, 60, 24);
ScreenShareRTMPT.instance.jVScreenHeightSpin.addChangeListener( new ChangeListener(){
public void stateChanged(ChangeEvent arg0) {
// TODO Auto-generated method stub
calcNewValueHeightSpin();
}
});