Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
discovery
Commits
bd49b2ab
Commit
bd49b2ab
authored
Sep 21, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改界面
parent
62ba3be9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/ConsoleFrame.java
+16
-10
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+2
-0
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+1
-0
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/ConsoleFrame.java
View file @
bd49b2ab
...
@@ -10,8 +10,9 @@ package com.nepxion.discovery.console.desktop;
...
@@ -10,8 +10,9 @@ package com.nepxion.discovery.console.desktop;
*/
*/
import
java.awt.Dimension
;
import
java.awt.Dimension
;
import
java.awt.event.WindowAdapter
;
import
java.awt.event.WindowEvent
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
com.nepxion.discovery.console.desktop.controller.ServiceController
;
import
com.nepxion.discovery.console.desktop.controller.ServiceController
;
import
com.nepxion.discovery.console.desktop.icon.ConsoleIconFactory
;
import
com.nepxion.discovery.console.desktop.icon.ConsoleIconFactory
;
...
@@ -23,9 +24,10 @@ import com.nepxion.swing.style.texture.shrink.JGreenOutlookTextureStyle;
...
@@ -23,9 +24,10 @@ import com.nepxion.swing.style.texture.shrink.JGreenOutlookTextureStyle;
public
class
ConsoleFrame
extends
JBasicFrame
{
public
class
ConsoleFrame
extends
JBasicFrame
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
ConsoleFrame
.
class
);
public
ConsoleFrame
()
{
public
ConsoleFrame
()
{
super
(
ConsoleLocale
.
getString
(
"title"
)
+
"
["
+
ServiceController
.
getDiscoveryType
()
+
" "
+
ConsoleLocale
.
getString
(
"discovery_center"
)
+
"] ["
+
ServiceController
.
getConfigType
()
+
" "
+
ConsoleLocale
.
getString
(
"config_center"
)
+
"]"
,
ConsoleIconFactory
.
getSwingIcon
(
"ribbon/navigator_nepxion.png"
),
new
Dimension
(
1280
,
900
));
super
(
ConsoleLocale
.
getString
(
"title"
)
+
"
"
+
getSubTitle
()
,
ConsoleIconFactory
.
getSwingIcon
(
"ribbon/navigator_nepxion.png"
),
new
Dimension
(
1280
,
900
));
}
}
public
void
launch
()
{
public
void
launch
()
{
...
@@ -36,15 +38,18 @@ public class ConsoleFrame extends JBasicFrame {
...
@@ -36,15 +38,18 @@ public class ConsoleFrame extends JBasicFrame {
getContentPane
().
add
(
reflectionHierarchy
);
getContentPane
().
add
(
reflectionHierarchy
);
addWindowListener
(
new
WindowAdapter
()
{
@Override
public
void
windowClosing
(
WindowEvent
e
)
{
}
});
setExtendedState
(
ConsoleFrame
.
MAXIMIZED_BOTH
);
setExtendedState
(
ConsoleFrame
.
MAXIMIZED_BOTH
);
setVisible
(
true
);
setVisible
(
true
);
toFront
();
toFront
();
}
}
private
static
String
getSubTitle
()
{
try
{
return
"["
+
ServiceController
.
getDiscoveryType
()
+
" "
+
ConsoleLocale
.
getString
(
"discovery_center"
)
+
"] ["
+
ServiceController
.
getConfigType
()
+
" "
+
ConsoleLocale
.
getString
(
"config_center"
)
+
"]"
;
}
catch
(
Exception
e
)
{
LOG
.
error
(
"Not connnect to Discovery Console"
,
e
);
return
"["
+
ConsoleLocale
.
getString
(
"not_connnect_to_console"
)
+
"]"
;
}
}
}
}
\ No newline at end of file
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
bd49b2ab
...
@@ -76,5 +76,6 @@ start_y=起始点Y坐标
...
@@ -76,5 +76,6 @@ start_y=起始点Y坐标
horizontal_gap
=
水平间距
horizontal_gap
=
水平间距
vertical_gap
=
垂直间距
vertical_gap
=
垂直间距
not_connnect_to_console
=
无法连接到控制平台
initialize_component
=
初始化界面
initialize_component
=
初始化界面
initialize_component_failure
=
初始化界面失败
initialize_component_failure
=
初始化界面失败
\ No newline at end of file
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
bd49b2ab
...
@@ -76,5 +76,6 @@ start_y=\u8d77\u59cb\u70b9Y\u5750\u6807
...
@@ -76,5 +76,6 @@ start_y=\u8d77\u59cb\u70b9Y\u5750\u6807
horizontal_gap
=
\u
6c34
\u
5e73
\u
95f4
\u
8ddd
horizontal_gap
=
\u
6c34
\u
5e73
\u
95f4
\u
8ddd
vertical_gap
=
\u5782\u
76f4
\u
95f4
\u
8ddd
vertical_gap
=
\u5782\u
76f4
\u
95f4
\u
8ddd
not_connnect_to_console
=
\u
65e0
\u
6cd5
\u
8fde
\u
63a5
\u5230\u
63a7
\u5236\u
5e73
\u
53f0
initialize_component
=
\u
521d
\u
59cb
\u5316\u
754c
\u9762
initialize_component
=
\u
521d
\u
59cb
\u5316\u
754c
\u9762
initialize_component_failure
=
\u
521d
\u
59cb
\u5316\u
754c
\u9762\u5931\u
8d25
initialize_component_failure
=
\u
521d
\u
59cb
\u5316\u
754c
\u9762\u5931\u
8d25
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment