Public Member Functions | |
AboutWindow () | |
create the Window | |
void | windowActivated (WindowEvent e) |
void | windowClosed (WindowEvent e) |
void | windowClosing (WindowEvent e) |
void | windowDeactivated (WindowEvent e) |
void | windowDeiconified (WindowEvent e) |
void | windowIconified (WindowEvent e) |
void | windowOpened (WindowEvent e) |
Package Attributes | |
Font | font = new Font("Arial", Font.BOLD, 48) |
Some fonts. | |
Font | fonts = new Font("Arial", Font.BOLD, 24) |
Some fonts. | |
Font | fontxs = new Font("Arial", Font.PLAIN, 18) |
Some fonts. | |
AttributedString | text = new AttributedString("SolidJavaTetris") |
The Strings. | |
String | code = "coded by: " |
The Strings. | |
String | name1 = "Thorsten Engesser" |
The Strings. | |
String | name2 = "FranzDietrich" |
The Strings. | |
Private Attributes | |
JFrame | frame |
A new Subwindow. | |
JPanel | comp |
The JPanel. |
engine.AboutWindow.AboutWindow | ( | ) |
create the Window
References engine.AboutWindow.code, engine.AboutWindow.comp, engine.AboutWindow.font, engine.AboutWindow.fonts, engine.AboutWindow.fontxs, engine.AboutWindow.frame, engine.AboutWindow.name1, engine.AboutWindow.name2, and engine.AboutWindow.text.
00071 { 00072 frame = new JFrame("About SolidJavaTetris"); 00073 00074 text.addAttribute(TextAttribute.FOREGROUND, new GradientPaint(0, 0, 00075 Color.black, 0, 48, Color.red, true)); 00076 text.addAttribute(TextAttribute.FONT, font); 00077 00078 comp = new JPanel() { 00079 private static final long serialVersionUID = -7503584594887895025L; 00080 00081 @Override 00082 public void paint(Graphics g) { 00083 g.drawString(text.getIterator(), 30, 100); 00084 g.setFont(fonts); 00085 g.drawString(code, 30, 150); 00086 g.drawString(name1, 130, 200); 00087 g.drawString(name2, 130, 230); 00088 g.setFont(fontxs); 00089 g.drawString( 00090 "Website: http://solidjavatetris.sourceforge.net/", 30, 00091 400); 00092 return; 00093 } 00094 }; 00095 frame.setSize(450, 450); 00096 frame.setResizable(false); 00097 frame.addWindowListener(this); 00098 frame.add(comp); 00099 00100 frame.setVisible(true); 00101 00102 comp.getGraphics().drawString(text.getIterator(), 30, 100); 00103 ; 00104 frame.validate(); 00105 00106 }
void engine.AboutWindow.windowActivated | ( | WindowEvent | e | ) |
void engine.AboutWindow.windowClosed | ( | WindowEvent | e | ) |
e |
References engine.AboutWindow.frame.
00119 { 00120 frame.setVisible(false); 00121 }
void engine.AboutWindow.windowClosing | ( | WindowEvent | e | ) |
e |
References engine.AboutWindow.frame.
00127 { 00128 frame.setVisible(false); 00129 }
void engine.AboutWindow.windowDeactivated | ( | WindowEvent | e | ) |
e |
References engine.AboutWindow.frame.
00135 { 00136 frame.setVisible(false); 00137 }
void engine.AboutWindow.windowDeiconified | ( | WindowEvent | e | ) |
void engine.AboutWindow.windowIconified | ( | WindowEvent | e | ) |
e |
References engine.AboutWindow.frame.
00150 { 00151 frame.setVisible(false); 00152 00153 }
void engine.AboutWindow.windowOpened | ( | WindowEvent | e | ) |
JFrame engine.AboutWindow.frame [private] |
A new Subwindow.
Referenced by engine.AboutWindow.AboutWindow(), engine.AboutWindow.windowClosed(), engine.AboutWindow.windowClosing(), engine.AboutWindow.windowDeactivated(), and engine.AboutWindow.windowIconified().
JPanel engine.AboutWindow.comp [private] |
Font engine.AboutWindow.font = new Font("Arial", Font.BOLD, 48) [package] |
Font engine.AboutWindow.fonts = new Font("Arial", Font.BOLD, 24) [package] |
Font engine.AboutWindow.fontxs = new Font("Arial", Font.PLAIN, 18) [package] |
AttributedString engine.AboutWindow.text = new AttributedString("SolidJavaTetris") [package] |
String engine.AboutWindow.code = "coded by: " [package] |
String engine.AboutWindow.name1 = "Thorsten Engesser" [package] |
String engine.AboutWindow.name2 = "FranzDietrich" [package] |