Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Java: Example - Sleepy Source

This program combines components (eg, buttons) and drawing. The Sleeper panel is used for graphics.

Tutorial Details:

In addition to its public constructor, it also has a public method, setAwake(...), that sets the state of the face to either asleep or awake. This method is called to cause the face to change.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/45examples/20components/30sleepy_face/sleepy-1source.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Java: Example - Sleepy Source

View Tutorial:
Java: Example - Sleepy Source

Related Tutorials:

NetBeans - XSLT Editor
NetBeans - XSLT Editor
 
Writing Ant Tasks
Writing Ant Tasks A nice feature of Ant is that it is designed to allow you to add your own tasks and use them in an build. This article shows you the basics of writing an Ant task and how to get a task to work.
 
Code Improvement Through Cyclomatic Complexity
Code Improvement Through Cyclomatic Complexity Software metrics often receive negative criticism, as they are viewed as an exact science, uniformly applicable to all scenarios. True, software metrics are an unbiased, objective measurement of a particul
 
Janino -- an Embedded Java Compiler
What is Janino? Janino is a compiler that reads a JavaTM expression, block, class body, source file or a set of source files, and generates JavaTM bytecode that is loaded and executed directly. Janino is not intended to be a development tool, but an embe
 
Attribute-Oriented Programming with Java 1.5, Part 2
Peeking Inside the Box: Attribute-Oriented Programming with Java 1.5,Part In the previous article in this series, "Peeking Inside the Box, Part 1," I introduced the concepts of Attribute-Oriented Programming, Java 1.5 annotations, and bytecode instrume
 
A Rendezvous with Java
A Rendezvous with Java During WWDC this year, Apple released Java source for Rendezvous. You can now write Java applications that can call on a Rendezvous service discovery on Mac OS X, Windows, and any POSIX system using code supplied by Apple. Apple in
 
JLog
JLog is an implementation of a Prolog interpreter, written in Java. It\'s primary benefit is that can be run on almost any platform supporting Java (such as a web browser), and as such it is well suited for educational purposes.
 
The eXo platform
The eXo platform The eXo platform™ software is a powerful Open Source corporate portal and content management system. Users of the platform have a customized single point of access to the company's information system and resources. The use of a corpora
 
Reduce code bloat with XDoclet
Reduce code bloat with XDoclet XDoclet can easily be one of the more versatile cross-technology code-generation tools in your Java programming toolbox. Unfortunately, developers often overlook XDoclet's general utility and use it only when it's bundled a
 
Portlet Community
Portlet Community If J2EE based portals, JSR 168 or WSRP mean anything to you, you have come to the right place.
 
Accessing the Database from Servlet
This article shows you how to access database from servlets. Here I am assuming that you are using win95/98/2000 and running Java Web Server.
 
Servlet Essentials
This document explains the concepts of Java Servlets and provides a step-by-step tutorial for writing HTTP Servlets with complete source code for the example Servlets. The tutorial and the other chapters cover all facets of Servlet programming from a ...
 
100 % java open-source cryptographic software libraries.
Cryptixtm is an international volunteer effort to produce robust, open-source cryptographic software libraries. Cryptix products are free, both for commercial and non-commercial use and are being used by developers all over the world. Development is ...
 
Jakarta Taglibs
This project is an open-source repository for JSP custom tag libraries and associated projects, such as TagLibraryValidator classes and extensions to page-creation tools to support tag libraries.
 
Strut your stuff with JSP tags
Learn how to use the custom tags from the open source Struts library and create extensions that ease the coding of properties associated with field values and user input validation. The Struts package is part of the open source Jakarta project.
 
A first look at Apache Geronimo
Start developing and deploying J2EE apps on the first open source J2EE server. When released, Geronimo will be the first J2EE-certified open source server. This article will give you the basics you need for developing and deploying J2EE applications on Ge
 
Q&A: Glenn Weinberg, Vice President of Operating Platforms Group, Elaborates on the Solaris 10 Launch
Increasing the overall Solaris Operating System user base and creating opportunities for customers and partners was the basis for Sun's decision to open source the UNIX-based operating system, says Glenn Weinberg of Sun's Operating Platforms Group.
 
Janino -- an Embedded JavaTM Compiler
Janino is a compiler that reads a JavaTM expression, block, class body, source file or a set of source files, and generates JavaTM bytecode that is loaded and executed directly. Janino is not intended to be a development tool, but an embedded compiler for
 
Source Code for Solaris OS Available Through OpenSolaris Program
Sun will release Solaris code under the newly OSI-approved Common Development and Distribution License (CDDL), based on the Mozilla Public License (MPL). You can now find Solaris Dynamic Tracing (DTrace) code on the OpenSolaris.org site, which is open for
 
Q&A on Open Source Development and the Solaris 10 OS
A Sun VP talks about how open source developers can work closely with Sun. Find out about a pilot program engaging with sys admins and developers to build the Solaris community. For more details visit http://opensolaris.org.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.