[jsword-svn] r1476 - in trunk: bibledesktop/src/main/java/org/crosswire/bibledesktop/book bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop common-swing/src/main/java/org/crosswire/common/config/swing common-swing/src/main/java/org/crosswire/common/swing jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop jsword-limbo/src/main/java/org/crosswire/common/swing

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Fri Jul 6 08:27:39 MST 2007


Author: dmsmith
Date: 2007-07-06 08:27:39 -0700 (Fri, 06 Jul 2007)
New Revision: 1476

Modified:
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/ParallelBookPicker.java
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/EditSitePane.java
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitesPane.java
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/AboutPane.java
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Splash.java
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/ViewSourcePane.java
   trunk/common-swing/src/main/java/org/crosswire/common/config/swing/BooleanField.java
   trunk/common-swing/src/main/java/org/crosswire/common/config/swing/TreeConfigEditor.java
   trunk/common-swing/src/main/java/org/crosswire/common/config/swing/WizardConfigEditor.java
   trunk/common-swing/src/main/java/org/crosswire/common/swing/QuickHelpDialog.java
   trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/ComparePane.java
   trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/GeneratorPane.java
   trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/MaintenancePane.java
   trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/ExceptionShelf.java
   trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/MenuUtil.java
   trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/TextViewPanel.java
Log:
Farsi orientation updates.

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/ParallelBookPicker.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/ParallelBookPicker.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/ParallelBookPicker.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -90,6 +90,7 @@
     {
         BooksComboBoxModel mdlBook = new BooksComboBoxModel(filter, comparator);
         JComboBox cboBook = new JComboBox(mdlBook);
+        cboBook.setPrototypeDisplayValue(BookListCellRenderer.PROTOTYPE_BOOK_NAME);
         cboBook.setRenderer(new BookListCellRenderer(true));
         cboBook.addItemListener(new SelectedItemListener(this));
         cboBook.addActionListener(new SelectedActionListener());

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/EditSitePane.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/EditSitePane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/EditSitePane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -202,7 +202,7 @@
 
         pnlAction = new JPanel();
         pnlAction.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
-        pnlAction.setLayout(new FlowLayout(FlowLayout.RIGHT));
+        pnlAction.setLayout(new FlowLayout(FlowLayout.TRAILING));
         pnlAction.add(btnClose, null);
     }
 

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitesPane.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitesPane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/install/SitesPane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -178,7 +178,7 @@
             JButton btnAdd = new JButton(actions.getAction(EDIT_SITE));
 
             pnlButtons = new JPanel();
-            pnlButtons.setLayout(new FlowLayout(FlowLayout.RIGHT));
+            pnlButtons.setLayout(new FlowLayout(FlowLayout.TRAILING));
             pnlButtons.add(btnAdd, null);
             pnlButtons.add(btnOK);
         }

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/AboutPane.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/AboutPane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/AboutPane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -86,7 +86,7 @@
         lblInfo.setFont(new Font(SPLASH_FONT, 1, 14));
         lblInfo.setBorder(BorderFactory.createEmptyBorder(5, 5, 0, 5));
         lblInfo.setOpaque(true);
-        lblInfo.setHorizontalAlignment(SwingConstants.RIGHT);
+        lblInfo.setHorizontalAlignment(SwingConstants.TRAILING);
         lblInfo.setText(Msg.getVersionInfo());
 
         ActionFactory actions = new ActionFactory(AboutPane.class, this);

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Splash.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Splash.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Splash.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -93,7 +93,7 @@
         lblText.setForeground(new Color(0x99, 0x66, 0xAA));
         lblText.setOpaque(false);
         lblText.setVerticalAlignment(SwingConstants.BOTTOM);
-        lblText.setHorizontalAlignment(SwingConstants.RIGHT);
+        lblText.setHorizontalAlignment(SwingConstants.TRAILING);
         lblText.setText(Msg.SPLASH_TITLE.toString());
         */
 
@@ -108,7 +108,7 @@
         lblInfo.setForeground(Color.WHITE);
         lblInfo.setBackground(Color.BLACK);
         //lblInfo.setBorder(BorderFactory.createEmptyBorder(5, 5, 0, 5));
-        lblInfo.setHorizontalAlignment(SwingConstants.RIGHT);
+        lblInfo.setHorizontalAlignment(SwingConstants.TRAILING);
         lblInfo.setText(Msg.getVersionInfo() + ' ');
         lblInfo.setOpaque(true);
 

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/ViewSourcePane.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/ViewSourcePane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/ViewSourcePane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -200,7 +200,7 @@
 
         textAreas = new JTextComponent[] { txtOrig, txtOsis, txtHtml };
 
-        pnlButtons = new JPanel(new FlowLayout(FlowLayout.RIGHT));
+        pnlButtons = new JPanel(new FlowLayout(FlowLayout.TRAILING));
         pnlButtons.add(new JButton(actions.getAction("SourceClip")), null); //$NON-NLS-1$
 
         tabMain = new JTabbedPane();

Modified: trunk/common-swing/src/main/java/org/crosswire/common/config/swing/BooleanField.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/config/swing/BooleanField.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/common-swing/src/main/java/org/crosswire/common/config/swing/BooleanField.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -55,7 +55,7 @@
         group.add(on);
         group.add(off);
 
-        setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
+        setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
         add(on);
         add(off);
     }

Modified: trunk/common-swing/src/main/java/org/crosswire/common/config/swing/TreeConfigEditor.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/config/swing/TreeConfigEditor.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/common-swing/src/main/java/org/crosswire/common/config/swing/TreeConfigEditor.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -109,7 +109,7 @@
         title.setForeground(Color.white);
         title.setOpaque(true);
         title.setText(Msg.PROPERTIES.toString());
-        title.setAlignmentX(SwingConstants.LEFT);
+        title.setAlignmentX(SwingConstants.LEADING);
 
         // Use this if you want to have the tree touch the bottom. Then add
         // the button panel to content.South

Modified: trunk/common-swing/src/main/java/org/crosswire/common/config/swing/WizardConfigEditor.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/config/swing/WizardConfigEditor.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/common-swing/src/main/java/org/crosswire/common/config/swing/WizardConfigEditor.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -81,7 +81,7 @@
         layout = new CardLayout();
         deck = new JPanel(layout);
 
-        title = new JLabel(Msg.PROPERTIES.toString(), SwingConstants.LEFT);
+        title = new JLabel(Msg.PROPERTIES.toString(), SwingConstants.LEADING);
         title.setIcon(TASK_ICON_LARGE);
         title.setFont(new Font(getFont().getName(), Font.PLAIN, 16));
         title.setPreferredSize(new Dimension(30, 30));

Modified: trunk/common-swing/src/main/java/org/crosswire/common/swing/QuickHelpDialog.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/swing/QuickHelpDialog.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/common-swing/src/main/java/org/crosswire/common/swing/QuickHelpDialog.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -88,7 +88,7 @@
 
         JButton btnOK = new JButton(actions.getAction(OK));
         JPanel pnlOK = new JPanel();
-        pnlOK.setLayout(new FlowLayout(FlowLayout.RIGHT));
+        pnlOK.setLayout(new FlowLayout(FlowLayout.TRAILING));
         pnlOK.add(btnOK, null);
         pnlOK.setBackground(Color.WHITE);
         pnlOK.setOpaque(true);

Modified: trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/ComparePane.java
===================================================================
--- trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/ComparePane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/ComparePane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -113,7 +113,7 @@
 
         // I18N: Migrate this to an ActionFactory
         btnGo.setText(LimboMsg.COMPARE_GO.toString());
-        pnlButtons.setLayout(new FlowLayout(FlowLayout.RIGHT));
+        pnlButtons.setLayout(new FlowLayout(FlowLayout.TRAILING));
         pnlButtons.add(btnGo, null);
 
         boxTop = Box.createVerticalBox();

Modified: trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/GeneratorPane.java
===================================================================
--- trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/GeneratorPane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/GeneratorPane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -134,7 +134,7 @@
         chkVerify.setText("Verify After Generation"); //$NON-NLS-1$
         chkVerify.setMnemonic('V');
         chkVerify.setSelected(false);
-        layButtons.setAlignment(FlowLayout.RIGHT);
+        layButtons.setAlignment(FlowLayout.TRAILING);
         pnlButtons.setLayout(layButtons);
         pnlButtons.add(chkVerify, null);
         pnlButtons.add(btnGenerate, null);

Modified: trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/MaintenancePane.java
===================================================================
--- trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/MaintenancePane.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/jsword-limbo/src/main/java/org/crosswire/bibledesktop/desktop/MaintenancePane.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -124,7 +124,7 @@
             }
         });
 
-        lay_buttons.setAlignment(FlowLayout.RIGHT);
+        lay_buttons.setAlignment(FlowLayout.TRAILING);
         pnl_buttons.setLayout(lay_buttons);
         pnl_buttons.add(btn_add, null);
         pnl_buttons.add(btn_remove, null);

Modified: trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/ExceptionShelf.java
===================================================================
--- trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/ExceptionShelf.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/ExceptionShelf.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -284,7 +284,7 @@
         }
 
         report.setFocusPainted(false);
-        report.setHorizontalAlignment(SwingConstants.LEFT);
+        report.setHorizontalAlignment(SwingConstants.LEADING);
 
         remove.setFocusPainted(false);
         // remove.setBorderPainted(false);

Modified: trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/MenuUtil.java
===================================================================
--- trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/MenuUtil.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/MenuUtil.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -122,7 +122,7 @@
         URL url = getResource(name+SUFFIX_IMAGE);
         if (url != null)
         {
-            menuitem.setHorizontalTextPosition(SwingConstants.RIGHT);
+            menuitem.setHorizontalTextPosition(SwingConstants.TRAILING);
             menuitem.setIcon(new ImageIcon(url));
         }
         String action_name = getResourceString(name+SUFFIX_ACTIOIN);

Modified: trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/TextViewPanel.java
===================================================================
--- trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/TextViewPanel.java	2007-07-06 00:59:59 UTC (rev 1475)
+++ trunk/jsword-limbo/src/main/java/org/crosswire/common/swing/TextViewPanel.java	2007-07-06 15:27:39 UTC (rev 1476)
@@ -134,7 +134,7 @@
         });
         btnClipboard.setText("Copy"); //$NON-NLS-1$
 
-        layButtons.setAlignment(FlowLayout.RIGHT);
+        layButtons.setAlignment(FlowLayout.TRAILING);
         pnlButtons.setLayout(layButtons);
         pnlButtons.add(btnClipboard, null);
 




More information about the jsword-svn mailing list