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