• R/O
  • SSH

JdbcAcsess2: Commit

全てを再実装したJdbcAcsessです。


Commit MetaInfo

Revision9640e2b9ba8965aa16f9922a3bf4d79c6d84cdd3 (tree)
Time2012-02-12 22:16:45
Authorshimakazuro
Commitershimakazuro

Log Message

アンチエイリアスを有効にする

Change Summary

Incremental Difference

diff -r 6c51febcb702 -r 9640e2b9ba89 src/jdbcacsess2/main/JPanelSql.java
--- a/src/jdbcacsess2/main/JPanelSql.java Sun Feb 12 14:32:32 2012 +0900
+++ b/src/jdbcacsess2/main/JPanelSql.java Sun Feb 12 22:16:45 2012 +0900
@@ -566,7 +566,7 @@
566566 if (rSyntaxTextAreaSql == null) {
567567 rSyntaxTextAreaSql = new RSyntaxTextArea();
568568 rSyntaxTextAreaSql.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_SQL);
569- rSyntaxTextAreaSql.setFont(getJTable().getFont());
569+ rSyntaxTextAreaSql.setAntiAliasingEnabled(true);
570570 }
571571 return rSyntaxTextAreaSql;
572572 }
diff -r 6c51febcb702 -r 9640e2b9ba89 src/jdbcacsess2/main/Jdbcacsess2.java
--- a/src/jdbcacsess2/main/Jdbcacsess2.java Sun Feb 12 14:32:32 2012 +0900
+++ b/src/jdbcacsess2/main/Jdbcacsess2.java Sun Feb 12 22:16:45 2012 +0900
@@ -50,6 +50,9 @@
5050
5151 SwingUtilities.invokeLater(new Runnable() {
5252 public void run() {
53+
54+ setLookAndFeel();
55+
5356 // Event dispatching thread の非チェック例外をキャッチする
5457 Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
5558 public void uncaughtException(Thread t, Throwable e) {
@@ -57,12 +60,18 @@
5760 ShowDialog.errorMessage(e);
5861 }
5962 });
60-
61- setLookAndFeel();
62-
6363 try {
6464 Config config = new Config();
6565
66+ // for (Entry<Object, Object> it :
67+ // UIManager.getLookAndFeelDefaults().entrySet()) {
68+ // if(it.getKey().toString().toLowerCase().endsWith("font"))
69+ // {
70+ // UIManager.put(it.getKey(), new Font("TakaoPGothic",
71+ // Font.PLAIN, 14));
72+ // }
73+ // }
74+
6675 new MainController(config);
6776
6877 } catch (Exception e) {
@@ -74,6 +83,7 @@
7483 }
7584
7685 private void setLookAndFeel() {
86+ System.setProperty("awt.useSystemAAFontSettings", "on");
7787 try {
7888 for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
7989 if ("Nimbus".equals(info.getName())) {
@@ -89,6 +99,7 @@
8999 } catch (Exception e1) {
90100 }
91101 }
102+ UIManager.put("swing.boldMetal", Boolean.FALSE);
92103 }
93104
94105 }
Show on old repository browser