--- old/src/java.desktop/share/classes/javax/swing/plaf/multi/doc-files/multi_tsc.html 2017-10-23 13:51:14.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/plaf/multi/doc-files/multi_tsc.html 2017-10-23 13:51:13.000000000 -0700 @@ -1,16 +1,37 @@ - - - -Using the Multiplexing Look and Feel - - - - - - -Using the Multiplexing Look and Feel - - + + + + + Using the Multiplexing Look and Feel + + + + + +

Using the Multiplexing Look and Feel


@@ -18,8 +39,8 @@ This document is based on an article originally published in -The Swing -Connection. +The Swing Connection.


@@ -31,10 +52,10 @@ (called the default look and feel) with one or more auxiliary look and feels. For example, you could -simultaneously provide text-to-speech and Braille outputs, -in addition to the ordinary visual output that a Swing-based +simultaneously provide text-to-speech and Braille outputs, +in addition to the ordinary visual output that a Swing-based application generates, -by adding +by adding two auxiliary look and feels (one for text-to-speech, the other for Braille) to the default look and feel. @@ -62,169 +83,160 @@

-Before reading further, you should be familiar +Before reading further, you should be familiar with the concept of pluggable look and feels. For basic information, see -How to Set the Look and Feel, -a section in -The Java Tutorial. + + How to Set the Look and Feel, a section in The Java Tutorial. For architectural details, you can read Pluggable look-and-feel architecture, a section within +href="http://www.oracle.com/technetwork/java/architecture-142923.html#pluggable"> + Pluggable look-and-feel architecture, a section within a Swing Connection article.

-

- -


- -Overview - - +

+ +


+

Overview

-The classes in the +The classes in the javax.swing.plaf.multi package -implement a +implement a multiplexing look and feel. -A multiplexing look and feel transparently creates -- and +A multiplexing look and feel transparently creates -- and simultaneously supports -- UI objects from several different look and feels in response to a component requesting its UI object (with the getUI method).

-Without a multiplexing look and feel, a -developer who wanted to enhance a particular look and feel would -need to extend the classes supporting that look and feel. For example, to -add text-to-speech support to the Java look and feel without using a multiplexing +Without a multiplexing look and feel, a +developer who wanted to enhance a particular look and feel would +need to extend the classes supporting that look and feel. For example, to +add text-to-speech support to the Java look and feel without using a multiplexing look and feel, the developer would need to create a group of classes that extend those of -the Java look and feel, and add text-to-speech support to the new classes. +the Java look and feel, and add text-to-speech support to the new classes. If the developer also wanted to add text-to-speech support to other look -and feels, -such as Motif or Windows, the developers would need to create subclasses +and feels, +such as Motif or Windows, the developers would need to create subclasses of those classes as well.

-This approach has at least two shortcomings: -