cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skolbac...@apache.org
Subject [2/8] cayenne git commit: add font to comboboxes which made by factory
Date Mon, 07 Dec 2015 15:31:41 GMT
add font to comboboxes which made by factory


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/1d1bc935
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/1d1bc935
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/1d1bc935

Branch: refs/heads/master
Commit: 1d1bc9359d992848225a7bdfb0c58801d4654e04
Parents: 8367f77
Author: AlexandrShestak <shestakalexandr@mail.ru>
Authored: Tue Nov 24 12:37:04 2015 +0300
Committer: Savva Kolbachev <s.kolbachev@gmail.com>
Committed: Mon Dec 7 13:21:41 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/cayenne/modeler/util/DefaultWidgetFactory.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/1d1bc935/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/DefaultWidgetFactory.java
----------------------------------------------------------------------
diff --git a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/DefaultWidgetFactory.java
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/DefaultWidgetFactory.java
index b86fc2c..c0596c7 100644
--- a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/DefaultWidgetFactory.java
+++ b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/DefaultWidgetFactory.java
@@ -19,6 +19,7 @@
 package org.apache.cayenne.modeler.util;
 
 import java.awt.Color;
+import java.awt.Font;
 import java.util.Arrays;
 import java.util.Collection;
 
@@ -62,6 +63,7 @@ public class DefaultWidgetFactory implements WidgetFactory {
      */
     public JComboBox createComboBox() {
         JComboBox comboBox = new JComboBox();
+        comboBox.setFont(new Font("Verdana", Font.PLAIN , 12));
         comboBox.setBackground(Color.WHITE);
         comboBox.setMaximumRowCount(ModelerPreferences.COMBOBOX_MAX_VISIBLE_SIZE);
         return comboBox;


Mime
View raw message