finally building sort of

This commit is contained in:
benfry
2007-07-16 05:09:50 +00:00
parent 9c8f660261
commit e59e3e00a9
4 changed files with 6958 additions and 6 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1026,7 +1026,7 @@ public class Editor extends JFrame {
/**
* Show the About box.
*/
static public void handleAbout() {
public void handleAbout() {
final Image image = Base.getImage("about.jpg", this);
final Window window = new Window(this) {
public void paint(Graphics g) {
@@ -1046,18 +1046,18 @@ public class Editor extends JFrame {
window.dispose();
}
});
int w = image.getWidth(window);
int h = image.getHeight(window);
int w = image.getWidth(this);
int h = image.getHeight(this);
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
window.setBounds((screen.width-w)/2, (screen.height-h)/2, w, h);
window.show();
window.setVisible(true);
}
/**
* Show the preferences window.
*/
static public void handlePrefs() {
public void handlePrefs() {
Preferences preferences = new Preferences();
preferences.showFrame(this);