-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathHyperZebra.java
More file actions
97 lines (83 loc) · 2.51 KB
/
HyperZebra.java
File metadata and controls
97 lines (83 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
public class HyperZebra{
public static void main(final String[] args) {
if(GMenu.isMacOSX()){
//Property
System.setProperty("com.apple.mrj.application.apple.menu.about.name",
PCARD.AppName);//about box
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.macos.useScreenMenuBar", "true");
//System.setProperty("com.apple.macos.smallTabs", "true");
System.setProperty("apple.awt.rendering","speed");
System.setProperty("apple.awt.graphics.UseQuartz","false");
}
PCARD.main(args);
}
//@SuppressWarnings({ "deprecation", "restriction" })
static
void installMacHandler(){
/*if(GMenu.isMacOSX()){
try{
//Mac Application Menu
com.apple.eawt.Application fApplication = com.apple.eawt.Application.getApplication();
fApplication.setEnabledPreferencesMenu(true);
fApplication.addApplicationListener(
new com.apple.eawt.ApplicationAdapter() {
@Override
public void handleAbout(com.apple.eawt.ApplicationEvent e) {
//showAbout();
//new GDialog(null, AppName+" "+PCARD.longVersion,
// null,"OK",null,null);
try {
TTalk.doScriptforMenu("about this");
} catch (xTalkException e2) {
e2.printStackTrace();
}
e.setHandled(true);
}
@Override
public void handleOpenApplication(
com.apple.eawt.ApplicationEvent e) {
//new GDialog(null, "handleOpenApplication"+e.getFilename(),
//null,"OK",null,null);
}
@Override
public void handleOpenFile(com.apple.eawt.ApplicationEvent e) {
try {
TTalk.doScriptforMenu("open stack "+"\""+e.getFilename()+"\"");
} catch (xTalkException e1) {
try {
TTalk.doScriptforMenu("edit picture "+"\""+e.getFilename()+"\"");
} catch (xTalkException e2) {
e2.printStackTrace();
}
}
}
@Override
public void handlePreferences(
com.apple.eawt.ApplicationEvent e) {
//doPreference();
//new GDialog(null, "handlePreferences",
//null,"OK",null,null);
}
@Override
public void handlePrintFile(
com.apple.eawt.ApplicationEvent e) {
new GDialog(null, "handlePrintFile",
null,"OK",null,null);
}
@Override
public void handleQuit(com.apple.eawt.ApplicationEvent e) {
try {
GMenuBrowse.doMenu("Quit HyperCard");
} catch (xTalkException e1) {
e1.printStackTrace();
}
//processExit();
}
}
);
}catch(Exception e){
}
}*/
}
}