You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
938 B
29 lines
938 B
11 years ago
|
import org.trinitydesktop.koala.*;
|
||
|
import org.trinitydesktop.qt.*;
|
||
15 years ago
|
|
||
|
public class Test {
|
||
|
static String description = "Systemtray test application for Java";
|
||
|
static String[][] options = {{ "+[File]", "image file to open", null }};
|
||
|
// static String[][] options = new String[0][0];//{{ null, null, null }};
|
||
|
|
||
|
public static void main(String[] argv){
|
||
12 years ago
|
TDEAboutData aboutData = new TDEAboutData( "test", "Test",
|
||
|
"0.1", description, TDEAboutData.License_GPL,
|
||
15 years ago
|
"(C) 2002 Gert-Jan van der Heiden");
|
||
12 years ago
|
TDECmdLineArgs.init( argv, aboutData );
|
||
|
TDECmdLineArgs.addCmdLineOptions(options);
|
||
15 years ago
|
System.out.println("1");
|
||
12 years ago
|
TDEApplication app = new TDEApplication();
|
||
15 years ago
|
System.out.println("2");
|
||
|
KSystemTray systemTrayIcon = new KSystemTray(null, "test");
|
||
|
System.out.println("3");
|
||
|
systemTrayIcon.show();
|
||
11 years ago
|
app.exec();
|
||
15 years ago
|
System.exit(0);
|
||
|
}
|
||
|
static {
|
||
|
qtjava.initialize();
|
||
11 years ago
|
tdejava.initialize();
|
||
15 years ago
|
}
|
||
|
}
|