chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1673048 - in /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench: ./ details/
Date Sun, 12 Apr 2015 19:57:46 GMT
Author: fmui
Date: Sun Apr 12 19:57:46 2015
New Revision: 1673048

URL: http://svn.apache.org/r1673048
Log:
Workbench: more dynamic GUI

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ChangeLogFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LogFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ChangeLogFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ChangeLogFrame.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ChangeLogFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ChangeLogFrame.java
Sun Apr 12 19:57:46 2015
@@ -21,6 +21,7 @@ package org.apache.chemistry.opencmis.wo
 import java.awt.BorderLayout;
 import java.awt.Cursor;
 import java.awt.Dimension;
+import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.util.Collection;
@@ -64,7 +65,9 @@ public class ChangeLogFrame extends JFra
 
     private void createGUI() {
         setTitle(WINDOW_TITLE + " - " + model.getRepositoryName());
-        setPreferredSize(new Dimension(700, 700));
+        
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 4), (int) (screenSize.getHeight()
/ 2)));
         setMinimumSize(new Dimension(200, 60));
 
         setLayout(new BorderLayout());

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientFrame.java
Sun Apr 12 19:57:46 2015
@@ -24,6 +24,7 @@ import java.awt.Cursor;
 import java.awt.Dimension;
 import java.awt.Image;
 import java.awt.Point;
+import java.awt.Toolkit;
 import java.awt.Window;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
@@ -329,7 +330,9 @@ public class ClientFrame extends JFrame
 
         addWindowListener(this);
 
-        setPreferredSize(new Dimension(prefs.getInt(PREFS_WIDTH, 1000), prefs.getInt(PREFS_HEIGHT,
600)));
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension(prefs.getInt(PREFS_WIDTH, (int) (screenSize.getWidth()
/ 1.5)), prefs.getInt(
+                PREFS_HEIGHT, (int) (screenSize.getHeight() / 1.5))));
         setMinimumSize(new Dimension(200, 60));
 
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ExpertLoginTab.java
Sun Apr 12 19:57:46 2015
@@ -93,7 +93,8 @@ public class ExpertLoginTab extends Abst
         add(configs, BorderLayout.PAGE_START);
 
         sessionParameterTextArea = new JTextArea();
-        sessionParameterTextArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));
+        sessionParameterTextArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, sessionParameterTextArea.getFont()
+                .getSize()));
         add(new JScrollPane(sessionParameterTextArea), BorderLayout.CENTER);
     }
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/FolderTable.java
Sun Apr 12 19:57:46 2015
@@ -95,6 +95,8 @@ public class FolderTable extends JTable
             column.setPreferredWidth(COLUMN_WIDTHS[i]);
         }
 
+        setRowHeight(getFontMetrics(getFont()).getHeight());
+
         final JPopupMenu popup = new JPopupMenu();
         JMenuItem menuItem = new JMenuItem("Copy to clipboard");
         popup.add(menuItem);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/InfoDialog.java
Sun Apr 12 19:57:46 2015
@@ -22,6 +22,7 @@ import java.awt.Dimension;
 import java.awt.FlowLayout;
 import java.awt.Font;
 import java.awt.Frame;
+import java.awt.Toolkit;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.Properties;
@@ -49,7 +50,8 @@ public class InfoDialog extends JDialog
     }
 
     private void createGUI() {
-        setPreferredSize(new Dimension(800, 500));
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 2), (int) (screenSize.getHeight()
/ 2)));
         setMinimumSize(new Dimension(600, 400));
 
         setLayout(new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS));
@@ -85,7 +87,7 @@ public class InfoDialog extends JDialog
 
         JTextArea ta = new JTextArea(readme.toString());
         ta.setEditable(false);
-        ta.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12));
+        ta.setFont(new Font(Font.MONOSPACED, Font.PLAIN, ta.getFont().getSize()));
         JScrollPane readmePane = new JScrollPane(ta);
         readmePane.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LogFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LogFrame.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LogFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LogFrame.java
Sun Apr 12 19:57:46 2015
@@ -22,6 +22,7 @@ import java.awt.BorderLayout;
 import java.awt.Dimension;
 import java.awt.FlowLayout;
 import java.awt.Font;
+import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 
@@ -50,14 +51,16 @@ public class LogFrame extends JFrame {
 
     private void createGUI() {
         setTitle(WINDOW_TITLE);
-        setPreferredSize(new Dimension(800, 600));
+        
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 2), (int) (screenSize.getHeight()
/ 2)));        
         setMinimumSize(new Dimension(200, 60));
 
         setLayout(new BorderLayout());
 
         logTextArea = new JTextArea();
         logTextArea.setEditable(false);
-        logTextArea.setFont(new Font("Monospaced", Font.PLAIN, 12));
+        logTextArea.setFont(new Font("Monospaced", Font.PLAIN, logTextArea.getFont().getSize()));
         logTextArea.setLineWrap(true);
         logTextArea.setWrapStyleWord(true);
         add(new JScrollPane(logTextArea), BorderLayout.CENTER);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
Sun Apr 12 19:57:46 2015
@@ -25,6 +25,7 @@ import java.awt.Cursor;
 import java.awt.Dimension;
 import java.awt.Font;
 import java.awt.Frame;
+import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.util.Collections;
@@ -78,8 +79,9 @@ public class LoginDialog extends JDialog
     }
 
     private void createGUI() {
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 2), (int) (screenSize.getHeight()
/ 2)));
         setMinimumSize(new Dimension(700, 500));
-        setPreferredSize(new Dimension(700, 500));
 
         Container pane = getContentPane();
         pane.setLayout(new BorderLayout());
@@ -240,7 +242,12 @@ public class LoginDialog extends JDialog
 
     private JButton createButton(String title) {
         JButton button = new JButton(title);
-        button.setPreferredSize(new Dimension(Short.MAX_VALUE, 30));
+
+        int height = 30;
+        height = Math.max(height,
+                getFontMetrics(button.getFont()).getHeight() + button.getInsets().top + button.getInsets().bottom);
+
+        button.setPreferredSize(new Dimension(Short.MAX_VALUE, height));
         button.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));
         button.setAlignmentX(Component.CENTER_ALIGNMENT);
 
@@ -249,9 +256,14 @@ public class LoginDialog extends JDialog
 
     private void createRepositoryBox(Container pane) {
         repositoryBox = new JComboBox();
+
+        int height = 60;
+        height = Math.max(height, (getFontMetrics(repositoryBox.getFont()).getHeight() *
3)
+                + repositoryBox.getInsets().top + repositoryBox.getInsets().bottom + 6);
+
         repositoryBox.setEnabled(false);
         repositoryBox.setRenderer(new RepositoryRenderer());
-        repositoryBox.setPreferredSize(new Dimension(Short.MAX_VALUE, 60));
+        repositoryBox.setPreferredSize(new Dimension(Short.MAX_VALUE, height));
         repositoryBox.setAlignmentX(Component.CENTER_ALIGNMENT);
 
         pane.add(repositoryBox);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/QueryFrame.java
Sun Apr 12 19:57:46 2015
@@ -23,6 +23,7 @@ import java.awt.Component;
 import java.awt.Cursor;
 import java.awt.Dimension;
 import java.awt.Point;
+import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.awt.event.MouseAdapter;
@@ -101,7 +102,9 @@ public class QueryFrame extends JFrame {
 
     private void createGUI() {
         setTitle(WINDOW_TITLE + " - " + model.getRepositoryName());
-        setPreferredSize(new Dimension(800, 700));
+
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 2), (int) (screenSize.getHeight()
/ 2)));
         setMinimumSize(new Dimension(200, 60));
 
         setLayout(new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS));
@@ -435,6 +438,8 @@ public class QueryFrame extends JFrame {
             setDefaultRenderer(ObjectIdImpl.class, new IdRenderer());
             setFillsViewportHeight(true);
             setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
+
+            setRowHeight(getFontMetrics(getFont()).getHeight());
         }
 
         @Override

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/RepositoryInfoFrame.java
Sun Apr 12 19:57:46 2015
@@ -22,6 +22,7 @@ import static org.apache.chemistry.openc
 import static org.apache.chemistry.opencmis.commons.impl.CollectionsHelper.isNullOrEmpty;
 
 import java.awt.Dimension;
+import java.awt.Toolkit;
 import java.util.List;
 import java.util.Map;
 
@@ -62,7 +63,9 @@ public class RepositoryInfoFrame extends
 
     private void createGUI() {
         setTitle(WINDOW_TITLE + " - " + model.getRepositoryName());
-        setPreferredSize(new Dimension(700, 700));
+
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 3), (int) (screenSize.getHeight()
/ 2)));
         setMinimumSize(new Dimension(200, 60));
 
         RepositoryInfo repInfo = null;
@@ -231,6 +234,7 @@ public class RepositoryInfoFrame extends
 
                     JTable permTable = new JTable(data, new String[] { "Permission", "Description"
});
                     permTable.setFillsViewportHeight(true);
+                    permTable.setRowHeight(getFontMetrics(permTable.getFont()).getHeight());
                     addComponent("Permissions:", new JScrollPane(permTable));
                 }
 
@@ -246,6 +250,7 @@ public class RepositoryInfoFrame extends
 
                     JTable permMapTable = new JTable(data, new String[] { "Key", "Permissions"
});
                     permMapTable.setFillsViewportHeight(true);
+                    permMapTable.setRowHeight(getFontMetrics(permMapTable.getFont()).getHeight());
                     addComponent("Permission mapping:", new JScrollPane(permMapTable));
                 }
             }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
Sun Apr 12 19:57:46 2015
@@ -25,6 +25,7 @@ import java.awt.Dimension;
 import java.awt.Frame;
 import java.awt.Insets;
 import java.awt.Rectangle;
+import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.awt.event.ItemEvent;
@@ -125,7 +126,8 @@ public class TckDialog {
         }
 
         private void createGUI() {
-            setPreferredSize(new Dimension(600, 500));
+            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+            setPreferredSize(new Dimension((int) (screenSize.getWidth() / 3), (int) (screenSize.getHeight()
/ 1.5)));
             setMinimumSize(new Dimension(600, 500));
 
             setLayout(new BorderLayout());
@@ -269,10 +271,14 @@ public class TckDialog {
                 }
             });
 
+            int height = 30;
+            height = Math.max(height, getFontMetrics(runButton.getFont()).getHeight() + runButton.getInsets().top
+                    + runButton.getInsets().bottom);
+
             final JPanel runButtonPanel = new JPanel();
             runButtonPanel.setLayout(new BoxLayout(runButtonPanel, BoxLayout.PAGE_AXIS));
             runButtonPanel.setBorder(BorderFactory.createEmptyBorder(0, 3, 3, 3));
-            runButton.setMaximumSize(new Dimension(Short.MAX_VALUE, 30));
+            runButton.setMaximumSize(new Dimension(Short.MAX_VALUE, height));
             runButtonPanel.add(runButton);
 
             add(runButtonPanel, BorderLayout.PAGE_END);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypeSplitPane.java
Sun Apr 12 19:57:46 2015
@@ -264,6 +264,8 @@ public class TypeSplitPane extends JSpli
                 column.setPreferredWidth(COLUMN_WIDTHS[i]);
             }
 
+            setRowHeight(getFontMetrics(getFont()).getHeight());
+
             final JPopupMenu popup = new JPopupMenu();
             JMenuItem menuItem = new JMenuItem("Copy to clipboard");
             popup.add(menuItem);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TypesFrame.java
Sun Apr 12 19:57:46 2015
@@ -23,6 +23,7 @@ import static org.apache.chemistry.openc
 import java.awt.BorderLayout;
 import java.awt.Cursor;
 import java.awt.Dimension;
+import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.io.BufferedInputStream;
@@ -100,7 +101,8 @@ public class TypesFrame extends JFrame {
             setIconImage(icon.getImage());
         }
 
-        setPreferredSize(new Dimension(1000, 700));
+        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+        setPreferredSize(new Dimension((int) (screenSize.getWidth() / 1.5), (int) (screenSize.getHeight()
/ 1.5)));
         setMinimumSize(new Dimension(200, 60));
         setLayout(new BorderLayout());
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java?rev=1673048&r1=1673047&r2=1673048&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/details/AbstractDetailsTable.java
Sun Apr 12 19:57:46 2015
@@ -72,6 +72,8 @@ public abstract class AbstractDetailsTab
             column.setPreferredWidth(colummnWidths[i]);
         }
 
+        setRowHeight(getFontMetrics(getFont()).getHeight());
+
         setFillsViewportHeight(true);
 
         final JPopupMenu popup = new JPopupMenu();



Mime
View raw message