OSDN Git Service
(root)
/
coroid
/
inqubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
確実に不要になるクラスを削除
[coroid/inqubus.git]
/
frontend
/
src
/
saccubus
/
Saccubus.java
diff --git
a/frontend/src/saccubus/Saccubus.java
b/frontend/src/saccubus/Saccubus.java
index
53c88d9
..
4310f3e
100644
(file)
--- a/
frontend/src/saccubus/Saccubus.java
+++ b/
frontend/src/saccubus/Saccubus.java
@@
-5,66
+5,66
@@
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import saccubus.prompt.Prompt;
import javax.swing.UIManager;
import saccubus.prompt.Prompt;
+import yukihane.inqubus.gui.MainFrame;
/**
* <p>
/**
* <p>
- *
\83
^
\83
C
\83
g
\83
\8b
:
\82
³
\82
«
\82
ã
\82
Î
\82
·
+ *
タイトル: さきゅばす
* </p>
* </p>
- *
+ *
* <p>
* <p>
- *
\90
à
\96
¾:
\83
j
\83
R
\83
j
\83
R
\93
®
\89
æ
\82
Ì
\93
®
\89
æ
\82
ð
\83
R
\83
\81
\83
\93
\83
g
\82
Â
\82
«
\82
Å
\95
Û
\91
¶
+ *
説明: ニコニコ動画の動画をコメントつきで保存
* </p>
* </p>
- *
+ *
* <p>
* <p>
- *
\92
\98
\8d
ì
\8c
: Copyright (c) 2007 PSI
+ *
著作権
: Copyright (c) 2007 PSI
* </p>
* </p>
- *
+ *
* <p>
* <p>
- *
\89
ï
\8e
Ð
\96
¼
:
+ *
会社名
:
* </p>
* </p>
- *
- * @author
\96
¢
\93
ü
\97
Í
+ *
+ * @author
未入力
* @version 1.0
*/
public class Saccubus {
boolean packFrame = false;
/**
* @version 1.0
*/
public class Saccubus {
boolean packFrame = false;
/**
- *
\83
A
\83
v
\83
\8a
\83
P
\81
[
\83
V
\83
\87
\83
\93
\82
Ì
\8d
\
\92
z
\82
Æ
\95
\
\8e
¦
\81
B
+ *
アプリケーションの構築と表示。
*/
public Saccubus() {
*/
public Saccubus() {
- //
\83
\81
\83
C
\83
\93
\83
t
\83
\8c
\81
[
\83
\80
\82
Ì
\8f
\80
\94
õ
+ //
メインフレームの準備
MainFrame frame = new MainFrame();
MainFrame frame = new MainFrame();
- // validate()
\82
Í
\83
T
\83
C
\83
Y
\82
ð
\92
²
\90
®
\82
·
\82
é
- // pack()
\82
Í
\97
L
\8c
ø
\82
È
\83
T
\83
C
\83
Y
\8f
î
\95
ñ
\82
ð
\83
\8c
\83
C
\83
A
\83
E
\83
g
\82
È
\82
Ç
\82
©
\82
ç
\8e
æ
\93
¾
\82
·
\82
é
+ // validate()
はサイズを調整する
+ // pack()
は有効なサイズ情報をレイアウトなどから取得する
if (packFrame) {
frame.pack();
} else {
frame.validate();
}
if (packFrame) {
frame.pack();
} else {
frame.validate();
}
- //
\83
E
\83
B
\83
\93
\83
h
\83
E
\82
ð
\92
\86
\89
\9b
\82
É
\94
z
\92
u
+ //
ウィンドウを中央に配置
frame.setLocationByPlatform(true);
frame.setLocationByPlatform(true);
- //
\83
X
\83
v
\83
\89
\83
b
\83
V
\83
\85
\82
Í
\89
B
\82
·
- //
\83
\81
\83
C
\83
\93
\83
t
\83
\8c
\81
[
\83
\80
\95
\
\8e
¦
+ //
スプラッシュは隠す
+ //
メインフレーム表示
frame.setVisible(true);
}
/**
frame.setVisible(true);
}
/**
- *
\83
A
\83
v
\83
\8a
\83
P
\81
[
\83
V
\83
\87
\83
\93
\83
G
\83
\93
\83
g
\83
\8a
\83
|
\83
C
\83
\93
\83
g
\81
B
- *
+ *
アプリケーションエントリポイント。
+ *
* @param args
* String[]
*/
public static void main(String[] args) throws IOException {
* @param args
* String[]
*/
public static void main(String[] args) throws IOException {
- //
\88
ø
\90
\94
\82
ª
\97
L
\82
é
\8f
ê
\8d
\87
\82
ÍCUI
\82
Å
\8b
N
\93
®
+ //
引数が有る場合はCUIで起動
if (args.length > 0) {
if (args.length > 0) {
- Prompt prompt = new Prompt();
- prompt.main(args);
+ Prompt.main(args);
return;
}
return;
}
- //
\88
ø
\90
\94
\82
ª
\96
³
\82
¢
\8f
ê
\8d
\87
\82
ÍGUI
\82
Å
\8b
N
\93
®
+ //
引数が無い場合はGUIで起動
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {