@ -37,11 +37,11 @@ public class WriteShortCutsPane extends JPanel{
private UILabel nextRowHK ;
private UILabel preCol ;
private UILabel preRow ;
public WriteShortCutsPane ( ) {
this . setLayout ( new BorderLayout ( ) ) ;
this . add ( createContentPane ( ) , BorderLayout . NORTH ) ;
if ( ! ServerPreferenceConfig . getInstance ( ) . isWriteShortCuts ( ) ) {
nextColString = "Enter" ;
nextRowString = "Tab" ;
@ -60,10 +60,10 @@ public class WriteShortCutsPane extends JPanel{
return contentPane ;
}
private JPanel getFeatureNamePane ( ) {
JPanel featureNamePane = new JPanel ( new BorderLayout ( ) ) ;
featureNamePane . setBorder ( BorderFactory . createEmptyBorder ( 16 , 0 , 0 , 0 ) ) ;
featureNamePane . setBorder ( BorderFactory . createEmptyBorder ( 10 , 0 , 0 , 0 ) ) ;
UILabel name = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Feature_Name" ) , SwingConstants . RIGHT ) ;
UILabel nextCol = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Next_Column" ) , SwingConstants . CENTER ) ;
UILabel nextRow = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Next_Row" ) , SwingConstants . CENTER ) ;
@ -75,13 +75,13 @@ public class WriteShortCutsPane extends JPanel{
JPanel centerPane = new JPanel ( new BorderLayout ( ) ) ;
centerPane . setBorder ( BorderFactory . createEmptyBorder ( 0 , 20 , 0 , 0 ) ) ;
centerPane . add ( column ( 24 ,
centerPane . add ( column ( 10 ,
row ( 10 , cell ( name ) . weight ( 0 . 13 ) , cell ( nextCol ) . weight ( 0 . 15 ) , cell ( new JPanel ( ) ) . weight ( 0 . 12 ) , cell ( nextRow ) . weight ( 0 . 15 ) , flex ( 0 . 45 ) ) ,
row ( 10 , cell ( shortName ) . weight ( 0 . 13 ) , cell ( nextColHK ) . weight ( 0 . 15 ) , cell ( switchBtnPane ) . weight ( 0 . 12 ) , cell ( nextRowHK ) . weight ( 0 . 15 ) , flex ( 0 . 45 ) )
) . getComponent ( ) ) ;
featureNamePane . add ( centerPane , BorderLayout . CENTER ) ;
return featureNamePane ;
}
@ -96,7 +96,7 @@ public class WriteShortCutsPane extends JPanel{
private JPanel getHintsPane ( ) {
JPanel hintsPane = new JPanel ( new BorderLayout ( ) ) ;
hintsPane . setBorder ( BorderFactory . createEmptyBorder ( 16 , 0 , 0 , 0 ) ) ;
hintsPane . setBorder ( BorderFactory . createEmptyBorder ( 10 , 0 , 0 , 0 ) ) ;
UILabel systemDefault = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_System_Default" ) , SwingConstants . RIGHT ) ;
UILabel preColText = new UILabel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Cursor_To_Previous_Column" ) , SwingConstants . CENTER ) ;
@ -107,19 +107,19 @@ public class WriteShortCutsPane extends JPanel{
JPanel centerPane = new JPanel ( new BorderLayout ( ) ) ;
centerPane . setBorder ( BorderFactory . createEmptyBorder ( 0 , 20 , 0 , 0 ) ) ;
centerPane . add ( column ( 24 ,
centerPane . add ( column ( 10 ,
row ( 10 , cell ( systemDefault ) . weight ( 0 . 13 ) , cell ( preColText ) . weight ( 0 . 24 ) , cell ( preCol ) . weight ( 0 . 14 ) , flex ( 0 . 64 ) ) ,
row ( 10 , cell ( new JPanel ( ) ) . weight ( 0 . 13 ) , cell ( preRowText ) . weight ( 0 . 24 ) , cell ( preRow ) . weight ( 0 . 14 ) , flex ( 0 . 64 ) )
) . getComponent ( ) ) ;
hintsPane . add ( centerPane , BorderLayout . CENTER ) ;
return hintsPane ;
}
public ActionListener getListener ( ) {
ActionListener actionListener = new ActionListener ( ) {
@Override
public void actionPerformed ( ActionEvent e ) {
String temp = nextColString ;
@ -136,10 +136,10 @@ public class WriteShortCutsPane extends JPanel{
} ) ;
}
} ;
return actionListener ;
}
private void switchColRow ( ) {
nextColHK . setText ( nextColString ) ;
nextRowHK . setText ( nextRowString ) ;