diff --git a/make/mkdemo/jfc/Makefile b/make/mkdemo/jfc/Makefile
index 768e5b8f4a81defb9a74b4d51b32dd70b6c15bc8..8eecf28597877440c3950e7b52b6ee10e8b2a2b8 100644
--- a/make/mkdemo/jfc/Makefile
+++ b/make/mkdemo/jfc/Makefile
@@ -39,7 +39,8 @@ SUBDIRS = \
Notepad \
SampleTree \
SwingApplet \
- TableExample
+ TableExample \
+ TransparentRuler
# Some demos aren't currently included in OpenJDK
ifndef OPENJDK
diff --git a/make/mkdemo/jfc/TransparentRuler/Makefile b/make/mkdemo/jfc/TransparentRuler/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..7092b875048962f0e7fb2b861a0ef674b9376f41
--- /dev/null
+++ b/make/mkdemo/jfc/TransparentRuler/Makefile
@@ -0,0 +1,44 @@
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation. Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+#
+
+#
+# Makefile to build the TransparentRuler demo.
+#
+
+BUILDDIR = ../../..
+PRODUCT = demo/jfc
+DEMONAME = TransparentRuler
+include $(BUILDDIR)/common/Defs.gmk
+
+DEMO_ROOT = $(SHARE_SRC)/demo/jfc/$(DEMONAME)
+DEMO_TOPFILES = ./README.txt
+DEMO_MAINCLASS = transparentruler.Ruler
+DEMO_DESTDIR = $(DEMODIR)/jfc/$(DEMONAME)
+
+
+#
+# Demo jar building rules.
+#
+include $(BUILDDIR)/common/Demo.gmk
diff --git a/src/share/demo/nbproject/project.xml b/src/share/demo/nbproject/project.xml
index 585faf33b000bf3e5eb2b19e039c67f1ccbab32d..43667547ddf2d2ccf8307ce6b0d6e6ddb38c878d 100644
--- a/src/share/demo/nbproject/project.xml
+++ b/src/share/demo/nbproject/project.xml
@@ -50,6 +50,7 @@
nbproject/jfc/Stylepad
nbproject/jfc/SwingApplet
nbproject/jfc/TableExample
+ nbproject/jfc/TransparentRuler
nbproject/scripting/jconsole-plugin
nbproject/management/FullThreadDump
nbproject/management/JTop