From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjsembed/tests/TestApplet.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 kjsembed/tests/TestApplet.java (limited to 'kjsembed/tests/TestApplet.java') diff --git a/kjsembed/tests/TestApplet.java b/kjsembed/tests/TestApplet.java new file mode 100644 index 00000000..7d4bbfda --- /dev/null +++ b/kjsembed/tests/TestApplet.java @@ -0,0 +1,17 @@ +import java.awt.*; + +public class TestApplet extends javax.swing.JApplet { + String parameter; + + public void init() { + parameter = getParameter( "TEXT" ); + if( parameter == null ) + parameter = "No value found"; + } + + public void paint( Graphics screen ) { + Graphics2D screen2D = (Graphics2D) screen; + screen2D.drawString( "I got value '" + parameter + "'.", 5, 50); + } + +} -- cgit v1.2.1