summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc')
-rw-r--r--Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc b/Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc
new file mode 100644
index 0000000..235d3de
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc
@@ -0,0 +1,17 @@
+/* SchriftGroesser.inc */
+
+public void paint(Graphics g)
+{
+ Font font = getFont();
+
+ if (font.getSize() <= 64) {
+ setFont(
+ new Font(
+ font.getFamily(),
+ font.getStyle(),
+ font.getSize() + 1
+ )
+ );
+ }
+ g.drawString("Hello, World",40,100);
+} \ No newline at end of file