From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • SSH

JdbcAcsess2: Commit

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


Commit MetaInfo

Revisiondd9202ce25ddc23e5cbfe131638e0af1b6e0aff3 (tree)
Time2012-02-12 23:34:27
Authorshimakazuro
Commitershimakazuro

Log Message

OnSceenでの位置取得を止める。取得失敗してたのは、これが原因か?

Change Summary

Incremental Difference

diff -r 9640e2b9ba89 -r dd9202ce25dd src/jdbcacsess2/connect/ConnectView.java
--- a/src/jdbcacsess2/connect/ConnectView.java Sun Feb 12 22:16:45 2012 +0900
+++ b/src/jdbcacsess2/connect/ConnectView.java Sun Feb 12 23:34:27 2012 +0900
@@ -1,15 +1,15 @@
11 /*
22 * Copyright 2011 Kazuhiro Shimada
33 *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http://www.apache.org/licenses/LICENSE-2.0
8+ * http://www.apache.org/licenses/LICENSE-2.0
99 *
10- * Unless required by applicable law or agreed to in writing, software
10+ * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
@@ -21,7 +21,6 @@
2121 import java.awt.GridBagConstraints;
2222 import java.awt.GridBagLayout;
2323 import java.awt.Insets;
24-import java.awt.Point;
2524 import java.awt.event.KeyEvent;
2625 import java.sql.SQLException;
2726
@@ -99,9 +98,8 @@
9998 public void collectViewConnect(ConfigViewConnect c) throws SQLException {
10099 c.setWidth(getWidth());
101100 c.setHeight(getHeight());
102- Point p = getLocationOnScreen();
103- c.setX(p.x);
104- c.setY(p.y);
101+ c.setX(getX());
102+ c.setY(getY());
105103 c.setDividerLocation(jSplitPane.getDividerLocation());
106104 c.setLastDividerLocation(jSplitPane.getLastDividerLocation());
107105 }
Show on old repository browser