• R/O
  • SSH
  • HTTPS

charactermanaj: コミット


コミットメタ情報

リビジョン84 (tree)
日時2013-11-25 07:46:20
作者seraphy

ログメッセージ

プロファイルの選択画面をsplitpaneに変更した。

変更サマリ

差分

--- trunk/src/charactermanaj/ui/ProfileSelectorDialog.java (revision 83)
+++ trunk/src/charactermanaj/ui/ProfileSelectorDialog.java (revision 84)
@@ -58,6 +58,7 @@
5858 import javax.swing.JRadioButton;
5959 import javax.swing.JRootPane;
6060 import javax.swing.JScrollPane;
61+import javax.swing.JSplitPane;
6162 import javax.swing.JTable;
6263 import javax.swing.JTextArea;
6364 import javax.swing.KeyStroke;
@@ -188,10 +189,6 @@
188189
189190 setTitle(strings.getProperty("title"));
190191
191- JPanel centerPanel = new JPanel();
192- GridLayout gridLayout = new GridLayout(2, 1);
193- centerPanel.setLayout(gridLayout);
194-
195192 JPanel pnlProfiles = new JPanel(new BorderLayout());
196193
197194 characterListModel = new ProfileSelectorTableModel();
@@ -445,13 +442,17 @@
445442 infoPanel.add(descriptionPanel);
446443 infoPanel.add(sampleImgTitledPanel);
447444
448- centerPanel.add(pnlProfilesGroup);
449- centerPanel.add(infoPanel);
445+ JSplitPane centerPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true);
446+ centerPane.setResizeWeight(1.f); // ウィンドウサイズ変更時に上を可変とする.
447+ centerPane.setDividerLocation(Integer.parseInt(strings
448+ .getProperty("dividerLocation")));
450449
450+ centerPane.add(pnlProfilesGroup);
451+ centerPane.add(infoPanel);
451452
452453 Container contentPane = getContentPane();
453454 contentPane.setLayout(new BorderLayout());
454- contentPane.add(centerPanel, BorderLayout.CENTER);
455+ contentPane.add(centerPane, BorderLayout.CENTER);
455456
456457 // OK/CANCEL ボタンパネル
457458
@@ -498,11 +499,11 @@
498499 im.put(KeyStroke.getKeyStroke(KeyEvent.VK_W, tk.getMenuShortcutKeyMask()), "closeProfileSelectorDialog");
499500 am.put("closeProfileSelectorDialog", actCancel);
500501
501- pack();
502+ int width = Integer.parseInt(strings.getProperty("windowWidth"));
503+ int height = Integer.parseInt(strings.getProperty("windowHeight"));
504+ setSize(width, height);
505+ setLocationRelativeTo(parent);
502506
503- setSize(500, 500);
504- setLocationRelativeTo(parent);
505-
506507 characterList.requestFocus();
507508 updateUIState();
508509 }
--- trunk/resources/languages/profileselectordialog.xml (revision 83)
+++ trunk/resources/languages/profileselectordialog.xml (revision 84)
@@ -1,5 +1,7 @@
11 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
22 <properties version="1.0">
3+ <entry key="windowWidth">500</entry>
4+ <entry key="windowHeight">500</entry>
35 <entry key="title">Profile Selector</entry>
46 <entry key="profile.new">New</entry>
57 <entry key="profile.copy">Copy Struct.</entry>
@@ -13,6 +15,7 @@
1315 <entry key="description">Description</entry>
1416 <entry key="profiles">Profiles</entry>
1517 <entry key="sample-image">Sample</entry>
18+ <entry key="dividerLocation">200</entry>
1619 <entry key="btn.select">Open</entry>
1720 <entry key="btn.cancel">Cancel</entry>
1821 <entry key="dropHere">dropHere</entry>
--- trunk/resources/languages/profileselectordialog_ja.xml (revision 83)
+++ trunk/resources/languages/profileselectordialog_ja.xml (revision 84)
@@ -1,5 +1,7 @@
11 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
22 <properties version="1.0">
3+ <entry key="windowWidth">500</entry>
4+ <entry key="windowHeight">500</entry>
35 <entry key="title">プロファイルの選択</entry>
46 <entry key="profile.new">新規</entry>
57 <entry key="profile.copy">構造の複製</entry>
@@ -13,6 +15,7 @@
1315 <entry key="description">プロファイルの説明</entry>
1416 <entry key="profiles">プロファイル一覧</entry>
1517 <entry key="sample-image">サンプルピクチャ</entry>
18+ <entry key="dividerLocation">200</entry>
1619 <entry key="btn.select">プロファイルを開く</entry>
1720 <entry key="btn.cancel">キャンセル</entry>
1821 <entry key="dropHere">ここにピクチャをドロップします</entry>
旧リポジトリブラウザで表示