Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Swing Hack 3: Overlay Graphics

Swing layouts I often have trouble figuring out which component on screen matches the one in my code, especially if there are custom widgets or subclasses that look the same as normal ones (like formatted text fields) or that don\'t have easy to see bord

Tutorial Details:

This is really easy to do in Swing because you can create what\'s known as a glasspane. It\'s an invisible Swing component which sits on top of the rest of a frame\'s contents, intercepting events. It\'s typically used to block input for modal dialogs or progress bars, but you can use it to paint on top of the frame as well. Combined with alpha channel colors we can do nifty tricks.

Joshua, this is a pretty nifty approach. It seems the simple ideas are the most impacting ones. Especially the fact, that you are not breaking and existing structures makes this hack a very cool one. -Norb


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Swing Hack 3: Overlay Graphics

View Tutorial:
Swing Hack 3: Overlay Graphics

Related Tutorials:

Java Q&A, Open Java?
Java Q&A, Open Java?
 
3D graphics programming in Java, Part 3: OpenGL
3D graphics programming in Java, Part 3: OpenGL
 
Java 2 introduces print capability to the Swing Forum - JavaWorld June 1999
Java 2 introduces print capability to the Swing Forum - JavaWorld June 1999
 
Java Tip 90: Accelerate your GUIs - JavaWorld
Java Tip 90: Accelerate your GUIs - JavaWorld
 
Dynamic user interface is only skin deep - JavaWorld May 2000
Dynamic user interface is only skin deep - JavaWorld May 2000
 
JSP templates - JavaWorld September 2000
JSP templates - JavaWorld September 2000
 
Become a programming Picasso with JHotDraw - JavaWorld February 2001
Become a programming Picasso with JHotDraw - JavaWorld February 2001
 
Add ghosted drag images to your JTrees - JavaWorld Tips
Add ghosted drag images to your JTrees - JavaWorld Tips
 
Take control with the Proxy design pattern
Take control with the Proxy design pattern
 
Remote-control Java
Remote-control Java
 
Worth reading
Worth reading
 
Interesting ...
Interesting ...
 
Java look and feel icons
These pages contain a collection of toolbar button graphics. The graphics have been designed specifically for use with the Java look and feel. They conform to the Java look and feel Design Guidelines (see the "Designing Button Graphics" section of the "Ap
 
G (2D graphic library)
G is a generic graphics library built on top of Java 2D in order to make scene graph oriented 2D graphics available to client applications in a high level, easy to use way
 
Wi.Ser (WidgetServer) unified rich client framework
Wi.Ser is a Java/XML server-side GUI-framework which enables an application to run as either a monolithic Swing application, a thin-client/server Swing application, or as a Web application without any change!
 
InfoNode (Java Components)
InfoNode Docking Windows is a pure Java Swing based docking windows framework. The best way to see features of InfoNode Docking Windows is to try the Web Start demos.
 
Getting Started With the Mobile 3D Graphics API for J2ME
This tutorial introduces the Mobile 3D Graphics API for J2ME, JSR 184. The article presents an overview, potential application areas, the differences between JSR 184 and two related APIs, the classes in the new optional package, the programming model, the
 
Enhance your end-user MDI experience with JExplose
Enhance your end-user MDI experience with *JExplose* ! Extremely simple to integrate with your existing Swing MDI products.
 
Sanssouci is a Java framework for autogenerating fancy Swing-GUIs via introspection.
Sanssouci is a Java framework for autogenerating fancy Swing-GUIs via introspection which display objects directly to the user
 
UltraLightClient Community Site
Community-driven Wiki site for UltraLightClient Code Snippets and Contributions If you want to contribute, please go to Register as Committer. There is no support for the content on this site by Canoo. Committers agree that the code can be used free of c
 
Site navigation
 

 

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

Copyright © 2006. All rights reserved.