Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Java Swing JTabbedPane in Windows XP Tutorial

In Java 1.5, Sun implemented the Windows XP look and feel for the JTabbedPane. Learn how to modify your JTabbedPane to take advantage of the new Windows XP look and feel.

Tutorial Details:

Java Swing JTabbedPane in Windows XP

In Java 1.5, Sun implemented the Windows XP look and feel for the JTabbedPane.

Learn how to modify your JTabbedPane to take advantage of the new Windows XP look and feel.

When creating JTabbedPane, you add a JPanel to each tabbed pane. The JPanel contains the controls in the tab. The following image shows a sample of the JTabbedPane running in Java 1.5 on Windows XP.

You'll notice that the tabs have the XP look and feel, but the content area is a solid color. In Windows XP, the content area of the tab should be a gradient background. In order to get the gradient background to display, you need to modify the JPanel that is added to the JTabbedPane. By default, the JPanel is opaque. You will need to set the JPanel's opaque flag to false so the gradient background will show through.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Java Swing JTabbedPane in Windows XP Tutorial

View Tutorial:
Java Swing JTabbedPane in Windows XP Tutorial

Related Tutorials:

Programming Java threads in the real world, Part 5 - JavaWorld - February 1999
Programming Java threads in the real world, Part 5 - JavaWorld - February 1999
 
Java Tip 72: Press Escape to close your Swing dialog windows
Java Tip 72: Press Escape to close your Swing dialog windows
 
Apple announces Java 2 plans at MacWorld
Apple announces Java 2 plans at MacWorld
 
Embed Java code into your native apps - JavaWorld May 2001
Embed Java code into your native apps - JavaWorld May 2001
 
Create a scrollable virtual desktop in Swing
Create a scrollable virtual desktop in Swing
 
Take command of your software
Take command of your software
 
Eclipse casts shadows
Eclipse casts shadows
 
Remote-control Java
Remote-control Java
 
Profiling the profilers
Profiling the profilers
 
Interesting ...
Interesting ...
 
Good article on how to adopt XP
Good article on how to adopt XP xtreme programming (XP) is a software development methodology that makes coding the primary activity. By promoting values such as simplicity and feedback, XP allows Java programmers to incrementally develop and test applic
 
Using Java Classes in Windows Batch Files
Using Java Classes in Windows Batch Files - a simple approach for system admin Although Java is an ideal language for implementing rich GUI applications, it is equally well-suited for the development of small console-based programs that, in turn, are p
 
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.
 
g4j - GMail API for Java
GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.
 
The JDBC RowSet Implementations Tutorial
In "The JDBC RowSet Implementations Tutorial," you will look at how to use the standard JDBC RowSet implementations specified in JSR-114.
 
Access Windows Performance Monitor counters from Java, Part 1
Access Windows Performance Monitor counters from Java, Part 1 Use a simple Java API to gather valuable performance statistics Summary Windows NT, 2000, 2003, and XP contain a utility called the Performance Monitor that provides a rich array of perform
 
JDock 1.1 - Swing docking framework
JDock is a pure java swing framework for managing, moving and resizing inner windows or components using a layout manager like a BorderLayout or a GridBagLayout.
 
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 ...
 
JavaServer Pages Technology - Documentation
Sun's tutorial for Java Server Pages that provide a good introduction to design web pages with JSP.
 
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
 
Site navigation
 

 

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

Copyright © 2006. All rights reserved.