全てを再実装したJdbcAcsessです。
Revision | dd9202ce25ddc23e5cbfe131638e0af1b6e0aff3 (tree) |
---|---|
Time | 2012-02-12 23:34:27 |
Author | shimakazuro |
Commiter | shimakazuro |
OnSceenでの位置取得を止める。取得失敗してたのは、これが原因か?
@@ -1,15 +1,15 @@ | ||
1 | 1 | /* |
2 | 2 | * Copyright 2011 Kazuhiro Shimada |
3 | 3 | * |
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. | |
6 | 6 | * You may obtain a copy of the License at |
7 | 7 | * |
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | |
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | 9 | * |
10 | - * Unless required by applicable law or agreed to in writing, software | |
10 | + * Unless required by applicable law or agreed to in writing, software | |
11 | 11 | * 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. | |
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | */ |
@@ -21,7 +21,6 @@ | ||
21 | 21 | import java.awt.GridBagConstraints; |
22 | 22 | import java.awt.GridBagLayout; |
23 | 23 | import java.awt.Insets; |
24 | -import java.awt.Point; | |
25 | 24 | import java.awt.event.KeyEvent; |
26 | 25 | import java.sql.SQLException; |
27 | 26 |
@@ -99,9 +98,8 @@ | ||
99 | 98 | public void collectViewConnect(ConfigViewConnect c) throws SQLException { |
100 | 99 | c.setWidth(getWidth()); |
101 | 100 | 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()); | |
105 | 103 | c.setDividerLocation(jSplitPane.getDividerLocation()); |
106 | 104 | c.setLastDividerLocation(jSplitPane.getLastDividerLocation()); |
107 | 105 | } |