Các quan sát quan tâm sẽ thông báo bảng thuộc tính chỉ ra rằng có 47 hành động có sẵn. Một hành động không được định nghĩa như là một hằng số, nhưng vẫn còn có cái tên "mô hình-dump." Hành động này chỉ là các cuộc gọi đổ () trên các tài liệu của JTextComponent hiện đang tập trung (giả định nó là một | Java Swing - O Reilly JScrollBar. isFreeStanding Set to by the Metal L F for any scrollbars used by JScrollPanes. This setting just indicates that the scrollbar should be displayed flush against its borders. Normally there is a small space around the scrollbar. Typically you won t have reason to change this particular value. JSlider. isFilled Can be set to to cause the slider s track to be filled on one side to clearly differentiate the space on either side of the thumb. JToolBar. isRollover Can be set to to cause the border on each of the toolbar s buttons to be replaced with a special rollover border. This border is the same as the button s default border except that it is only painted when the cursor is over the button meaning that at any given time at most one button in the toolbar will have a border. Netscape users will recognize this feature from the toolbars in Navigator. JTree. lineStyle This property can be set to Angled or None or the default Horizontal to change the way the tree structure is drawn. By default horizontal lines are drawn to separate branches of the tree. Setting this property to Angled causes short angled lines to be drawn between the nodes. As you might guess setting it to None turns off both features. Replacement of Individual UI Delegates Say you re using a L F that you re basically happy with but there are a few components you wish had a slightly different appearance. If the changes you want to make can t be done by simply changing resource values one option is to implement your own custom UI delegates for the components you want to change and then tell the UIManager to use your new classes instead of the L F defaults. Modifying a Scrollbar We ll show how this can be done with a very simple example. We ve decided to toss aside the nice clean consistent design of the Metal L F by changing the way the thumb of the scrollbar is displayed. To keep the code as simple as possible we re