@ -41,20 +41,20 @@ import static com.fr.design.i18n.Toolkit.i18nText;
* /
public class SslPane extends BasicPane {
UICheckBox usingSsl = new UICheckBox ( i18nText ( "Fine-Design_Basic_Ssl_Using" ) ) ;
private KeyFileUITextField keyPathCa = new KeyFileUITextField ( ) ;
private KeyFileUITextField keyPathCa = new KeyFileUITextField ( 18 ) ;
private UIButton fileChooserButtonCa = new UIButton ( ) ;
private KeyFileUITextField keyPathClientCert = new KeyFileUITextField ( ) ;
private KeyFileUITextField keyPathClientCert = new KeyFileUITextField ( 18 ) ;
private UIButton fileChooserButtonClientCert = new UIButton ( ) ;
private KeyFileUITextField keyPathClientKey = new KeyFileUITextField ( ) ;
private KeyFileUITextField keyPathClientKey = new KeyFileUITextField ( 18 ) ;
private UIButton fileChooserButtonClientKey = new UIButton ( ) ;
private UICheckBox verifyCa = new UICheckBox ( i18nText ( "Fine-Design_Basic_Ssl_Verify_Ca" ) ) ;
private UITextField cipher = new UITextField ( ) ;
private UITextField cipher = new UITextField ( 20 ) ;
private JPanel jPanel ;
private Component [ ] [ ] usingComps ;
private double p = TableLayout . PREFERRED ;
private double f = TableLayout . FILL ;
private JPanel contextPane ;
private double [ ] columnSize = new double [ ] { 208 , p } ;
private double [ ] columnSize = new double [ ] { 195 , p } ;
public SslPane ( ) {
fileChooserButtonCa . setIcon ( new ImageIcon ( UIConstants . ACCESSIBLE_EDITOR_DOT ) ) ;
@ -64,25 +64,15 @@ public class SslPane extends BasicPane {
this . setLayout ( FRGUIPaneFactory . createLabelFlowLayout ( ) ) ;
jPanel = FRGUIPaneFactory . createBorderLayout_S_Pane ( ) ;
Dimension dimension = new Dimension ( 20 , 20 ) ;
int columns = 18 ;
keyPathCa . setColumns ( columns ) ;
fileChooserButtonCa . setPreferredSize ( dimension ) ;
keyPathClientCert . setColumns ( columns ) ;
fileChooserButtonClientCert . setPreferredSize ( dimension ) ;
fileChooserButtonClientKey . setPreferredSize ( dimension ) ;
keyPathClientKey . setColumns ( columns ) ;
JPanel filePanelCa = FRGUIPaneFactory . createLeftFlowZeroGapBorderPane ( ) ;
filePanelCa . add ( keyPathCa ) ;
filePanelCa . add ( fileChooserButtonCa ) ;
JPanel filePanelCa = TableLayoutHelper . createCommonTableLayoutPane ( new Component [ ] [ ] { { keyPathCa , fileChooserButtonCa } } , new double [ ] { p } , new double [ ] { f , 20 } , 0 ) ;
Component [ ] compCa = { new UILabel ( Toolkit . i18nText ( "Fine-Design_Basic_Ssl_Ca" ) + ":" , SwingConstants . RIGHT ) , filePanelCa } ;
Component [ ] compVerifyCa = { null , verifyCa } ;
JPanel filePanelClientCert = FRGUIPaneFactory . createLeftFlowZeroGapBorderPane ( ) ;
filePanelClientCert . add ( keyPathClientCert ) ;
filePanelClientCert . add ( fileChooserButtonClientCert ) ;
JPanel filePanelClientCert = TableLayoutHelper . createCommonTableLayoutPane ( new Component [ ] [ ] { { keyPathClientCert , fileChooserButtonClientCert } } , new double [ ] { p } , new double [ ] { f , 20 } , 0 ) ;
Component [ ] compClientCert = { new UILabel ( Toolkit . i18nText ( "Fine-Design_Basic_Ssl_Client_Cert" ) + ":" , SwingConstants . RIGHT ) , filePanelClientCert } ;
JPanel filePanelClientKey = FRGUIPaneFactory . createLeftFlowZeroGapBorderPane ( ) ;
filePanelClientKey . add ( keyPathClientKey ) ;
filePanelClientKey . add ( fileChooserButtonClientKey ) ;
JPanel filePanelClientKey = TableLayoutHelper . createCommonTableLayoutPane ( new Component [ ] [ ] { { keyPathClientKey , fileChooserButtonClientKey } } , new double [ ] { p } , new double [ ] { f , 20 } , 0 ) ;
Component [ ] compClientKey = { new UILabel ( Toolkit . i18nText ( "Fine-Design_Basic_Ssl_Client_Key" ) + ":" , SwingConstants . RIGHT ) , filePanelClientKey } ;
Component [ ] comCipher = { new UILabel ( Toolkit . i18nText ( "Fine-Design_Basic_Ssl_Cipher" ) + ":" , SwingConstants . RIGHT ) , cipher } ;
usingComps = new Component [ ] [ ] {