Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97870793
CertifiedInstitutionApp.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
Tue, Jan 7, 00:24
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Jan 9, 00:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23422918
Attached To
R3229 Genome Privacy - SHCS App
CertifiedInstitutionApp.java
View Options
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
javax.swing.UnsupportedLookAndFeelException
;
import
ui.GUI
;
import
utils.CertifiedInstitutionProperties
;
public
class
CertifiedInstitutionApp
{
public
static
void
main
(
String
args
[])
{
Logger
logger
=
Logger
.
getLogger
(
Logger
.
GLOBAL_LOGGER_NAME
);
logger
.
setLevel
(
Level
.
FINEST
);
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
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
|
InstantiationException
|
IllegalAccessException
|
UnsupportedLookAndFeelException
ex
)
{
java
.
util
.
logging
.
Logger
.
getLogger
(
GUI
.
class
.
getName
()).
log
(
java
.
util
.
logging
.
Level
.
SEVERE
,
null
,
ex
);
ex
.
printStackTrace
();
}
//</editor-fold>
/* Create and display the form */
java
.
awt
.
EventQueue
.
invokeLater
(
new
Runnable
()
{
public
void
run
()
{
CertifiedInstitutionProperties
props
=
new
CertifiedInstitutionProperties
(
"config/config_CI.fry.properties"
);
// CertifiedInstitutionProperties props = new CertifiedInstitutionProperties("config/config_CI.properties");
new
GUI
(
props
).
setVisible
(
true
);
}
});
}
}
Event Timeline
Log In to Comment