Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100457000
ClientApp.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jan 30, 23:25
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Feb 1, 23:25 (2 d)
Engine
blob
Format
Raw Data
Handle
23966174
Attached To
R3229 Genome Privacy - SHCS App
ClientApp.java
View Options
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
javax.swing.UnsupportedLookAndFeelException
;
import
ui.GUI
;
import
utils.ClientProperties
;
public
class
ClientApp
{
private
final
static
Logger
LOGGER
=
Logger
.
getLogger
(
ClientApp
.
class
.
getName
());
public
static
void
main
(
String
args
[])
{
// Handler handler = new ConsoleHandler();
// handler.setLevel(Level.FINEST);
// Logger.getLogger("").addHandler(handler);
// set LookAndFeel
try
{
for
(
javax
.
swing
.
UIManager
.
LookAndFeelInfo
info
:
javax
.
swing
.
UIManager
.
getInstalledLookAndFeels
())
{
if
(
"Windows"
.
equals
(
info
.
getName
()))
{
javax
.
swing
.
UIManager
.
setLookAndFeel
(
info
.
getClassName
());
break
;
}
}
}
catch
(
ClassNotFoundException
e
)
{
LOGGER
.
log
(
Level
.
SEVERE
,
null
,
e
);
}
catch
(
InstantiationException
e
)
{
LOGGER
.
log
(
Level
.
SEVERE
,
null
,
e
);
}
catch
(
IllegalAccessException
e
)
{
LOGGER
.
log
(
Level
.
SEVERE
,
null
,
e
);
}
catch
(
UnsupportedLookAndFeelException
e
)
{
LOGGER
.
log
(
Level
.
SEVERE
,
null
,
e
);
}
java
.
awt
.
EventQueue
.
invokeLater
(
new
Runnable
()
{
public
void
run
()
{
// get client configuration
ClientProperties
props
=
new
ClientProperties
(
"config/config_client.fry.properties"
);
// ClientProperties props = new ClientProperties("config/config_client.properties");
new
GUI
(
props
).
setVisible
(
true
);
}
});
}
}
Event Timeline
Log In to Comment