Java Reference
In-Depth Information
In practice, the upshot of these restrictions is that many PBP implementations sup-
port only a single top-level window, so you can't construct applications with more than
one window. To determine whether or not the PBP implementation you're working with
has these limitations, you can query a system property for each limitation. Table 9-1
shows the system properties and their values.
Table 9-1. PBP System Properties and Their Values
Property
Value
java.awt.AlphaComposite.SRC_OVER.isRestricted
true if and only if
AlphaComposite.SRC_OVER is restricted
java.awt.Graphics2D.setStroke.BasicStroke.
true if and only if the use of
isRestricted
BasicStroke is restricted in
Graphics2D.setStroke
java.awt.event.MouseEvent.isRestricted
true if and only if MouseEvent is restricted
java.awt.event.MouseEvent.supportLevel
Level of support for MouseEvent ,if
restricted; undefined otherwise 1
java.awt.event.KeyEvent.isRestricted
true if and only if KeyEvent is restricted
java.awt.event.KeyEvent.supportMask 2
Mask describing KeyEvent support, if
restricted; undefined otherwise
java.awt.Component.setCursor.isRestricted
true if the cursor image cannot be
changed for any Component ; optionally
supported by platforms
java.awt.Frame.setLocation.isRestricted
true if Frame location is limited to a single
value; optionally supported by platforms
java.awt.Frame.setResizable.isRestricted
true if Frame resizability may not be
changed; optionally supported by
platforms
java.awt.Frame.setSize.isRestricted
true if Frame size is limited to a single
value; optionally supported by platforms
java.awt.Frame.setTitle.isRestricted
true if Frame titles may not be changed;
optionally supported by platforms
java.awt.Frame.setUndecorated.isRestricted
true if Frame decorations may not be
changed; optionally supported by
platforms
1 The java.awt.event.MouseEvent.supportLevel property is 0 if the platform generates no mouse events, 1 if
the platform provides all events but pointer movement events, and 2 if it provides all events that the
AWT defines.
2 The java.awt.event.KeyEvent.supportMask is a bit mask where 1 indicates support for VK_LEFT and
VK_RIGHT keys, 2 indicates support for VK_UP and VK_DOWN keys, 4 indicates support for VK_0 through
VK_9 (a numeric keypad), and 8 indicates support for VK_A through VK_Z with VK_SPACE and
VK_BACK_SPACE (an alphanumeric keypad).
 
Search WWH ::




Custom Search